Commit 5686333d authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

MetaDataWorker: Stop watching for endReached once it's not needed anymore.

parent 4922fe3e
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment