fix segfault
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 3 Apr 2006 09:35:34 +0000 (09:35 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 3 Apr 2006 09:35:34 +0000 (09:35 +0000)
lib/dvb/dvb.cpp

index 55aa6ea9c62cc15a17dbc755c0edb4c574a471ac..9d5a68aa225b974210d16136bd234b389697cd4a 100644 (file)
@@ -1045,10 +1045,7 @@ RESULT eDVBChannel::playFile(const char *file)
                eDebug("can't open /dev/misc/pvr - you need to buy the new(!) $$$ box! (%m)"); // or wait for the driver to be improved.
                return -ENODEV;
        }
-       
-       m_state = state_ok;
-       m_stateChanged(this);
-       
+
        m_pvr_thread = new eFilePushThread();
        m_pvr_thread->enablePVRCommit(1);
        m_pvr_thread->setScatterGather(this);
@@ -1062,6 +1059,9 @@ RESULT eDVBChannel::playFile(const char *file)
        }
        CONNECT(m_pvr_thread->m_event, eDVBChannel::pvrEvent);
 
+       m_state = state_ok;
+       m_stateChanged(this);
+
        return 0;
 }