fix bluescreen in some conditions
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Wed, 27 Dec 2006 16:45:39 +0000 (16:45 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Wed, 27 Dec 2006 16:45:39 +0000 (16:45 +0000)
lib/dvb/decoder.cpp

index b9acabade0b14c7d01c0da6c4f44494fa2408d37..fdd3f8724485ad61498c73e93dc56228916baa27 100644 (file)
@@ -466,6 +466,7 @@ int eTSMPEGDecoder::setState()
        {
                m_video->stop();
                m_video=0;
+               m_video_event_conn=0;
        }
        if (m_changed & changePCR)
        {
@@ -522,8 +523,9 @@ int eTSMPEGDecoder::setState()
                {
                        eDebug("STOP");
                        m_video->stop();
+                       m_video = 0;
+                       m_video_event_conn = 0;
                }
-               m_video = 0;
                if ((m_vpid >= 0) && (m_vpid < 0x1FFF))
                {
                        eDebug("new video");