aboutsummaryrefslogtreecommitdiff
path: root/lib/dvb/dvb.cpp
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-04-03 09:35:34 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-04-03 09:35:34 +0000
commit515afae59cacf477dbc07c748aa2268e3d249223 (patch)
treea9da4c361d6df2e45cfd6cb3a499dcf521f495f1 /lib/dvb/dvb.cpp
parent5330b6e938871020585148d430e510247ad8a7ce (diff)
downloadenigma2-515afae59cacf477dbc07c748aa2268e3d249223.tar.gz
enigma2-515afae59cacf477dbc07c748aa2268e3d249223.zip
fix segfault
Diffstat (limited to 'lib/dvb/dvb.cpp')
-rw-r--r--lib/dvb/dvb.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/dvb/dvb.cpp b/lib/dvb/dvb.cpp
index 55aa6ea9..9d5a68aa 100644
--- a/lib/dvb/dvb.cpp
+++ b/lib/dvb/dvb.cpp
@@ -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;
}