decoder.cpp: call setState also in statePlay when pids have changed.. this fixes...
authorghost <andreas.monzner@multimedia-labs.de>
Thu, 9 Apr 2009 19:22:51 +0000 (21:22 +0200)
committerghost <andreas.monzner@multimedia-labs.de>
Thu, 9 Apr 2009 19:22:51 +0000 (21:22 +0200)
lib/dvb/decoder.cpp

index ebe3ce2..eb5258d 100644 (file)
@@ -1170,9 +1170,15 @@ RESULT eTSMPEGDecoder::set()
 RESULT eTSMPEGDecoder::play()
 {
        if (m_state == statePlay)
 RESULT eTSMPEGDecoder::play()
 {
        if (m_state == statePlay)
-               return 0;
-       m_state = statePlay;
-       m_changed |= changeState;
+       {
+               if (!m_changed)
+                       return 0;
+       }
+       else
+       {
+               m_state = statePlay;
+               m_changed |= changeState;
+       }
        return setState();
 }
 
        return setState();
 }