[vlmc-devel] MetaDataWorker: Stop watching for endReached once it's not needed anymore.
Hugo Beauzée-Luyssen
git at videolan.org
Sat Sep 22 18:47:45 CEST 2012
vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Sat Sep 22 18:42:07 2012 +0300| [5686333d4df9d7cada964d327a4dcbe05a41484d] | committer: Hugo Beauzée-Luyssen
MetaDataWorker: Stop watching for endReached once it's not needed anymore.
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=5686333d4df9d7cada964d327a4dcbe05a41484d
---
src/Metadata/MetaDataWorker.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/Metadata/MetaDataWorker.cpp b/src/Metadata/MetaDataWorker.cpp
index c9364e0..549b444 100644
--- a/src/Metadata/MetaDataWorker.cpp
+++ b/src/Metadata/MetaDataWorker.cpp
@@ -268,6 +268,10 @@ void
MetaDataWorker::entrypointPlaying()
{
disconnect( m_mediaPlayer, SIGNAL( playing() ), this, SLOT( entrypointPlaying() ) );
+ //The endReached event is connected in order to catch decoder error.
+ //If we have reached a state when the media is playing, then we don't need to
+ //check for that kind of error anymore.
+ disconnect( m_mediaPlayer, SIGNAL( endReached() ), this, SLOT( failure() ) );
m_mediaIsPlaying = true;
if ( m_lengthHasChanged == true )
metaDataAvailable();
More information about the Vlmc-devel
mailing list