aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2005-09-02 20:02:44 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2005-09-02 20:02:44 +0000
commitdaf56b9874fdbe710c2ff3b208a234e41bbd8f10 (patch)
tree8de4921362230ed7fbdaf27cfd896f30f22cdeb3 /lib
parentb2c9f6632fac847577a52e23aa56a1f0816b1927 (diff)
downloadenigma2-daf56b9874fdbe710c2ff3b208a234e41bbd8f10.tar.gz
enigma2-daf56b9874fdbe710c2ff3b208a234e41bbd8f10.zip
more thread safe
Diffstat (limited to 'lib')
-rw-r--r--lib/dvb/demux.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/dvb/demux.cpp b/lib/dvb/demux.cpp
index 5a143c5e..d5c7cf73 100644
--- a/lib/dvb/demux.cpp
+++ b/lib/dvb/demux.cpp
@@ -129,7 +129,7 @@ eDVBSectionReader::eDVBSectionReader(eDVBDemux *demux, eMainloop *context, RESUL
if (fd >= 0)
{
- notifier=new eSocketNotifier(context, fd, eSocketNotifier::Read);
+ notifier=new eSocketNotifier(context, fd, eSocketNotifier::Read, false);
CONNECT(notifier->activated, eDVBSectionReader::data);
res = 0;
} else
@@ -155,6 +155,7 @@ RESULT eDVBSectionReader::start(const eDVBSectionFilterMask &mask)
if (fd < 0)
return -ENODEV;
+ notifier->start();
#if HAVE_DVB_API_VERSION < 3
dmxSctFilterParams sct;
#else
@@ -205,7 +206,8 @@ RESULT eDVBSectionReader::stop()
active=0;
::ioctl(fd, DMX_STOP);
-
+ notifier->stop();
+
return 0;
}