aboutsummaryrefslogtreecommitdiff
path: root/lib/dvb/demux.cpp
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2005-07-12 21:10:02 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2005-07-12 21:10:02 +0000
commitaa3d1162bef321bd2d0effdafce6eb080660a7ca (patch)
tree746d044753c2c2c8b90f48ccb7adab4d7eb472cc /lib/dvb/demux.cpp
parentb47c326aad25626034d14ffb630628da2f0e8b97 (diff)
downloadenigma2-aa3d1162bef321bd2d0effdafce6eb080660a7ca.tar.gz
enigma2-aa3d1162bef321bd2d0effdafce6eb080660a7ca.zip
remove unneeded signals ( eDVBChannel::m_stateChanged give us the same informations )
Diffstat (limited to 'lib/dvb/demux.cpp')
-rw-r--r--lib/dvb/demux.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/dvb/demux.cpp b/lib/dvb/demux.cpp
index f6bdbd7b..f50f4bb2 100644
--- a/lib/dvb/demux.cpp
+++ b/lib/dvb/demux.cpp
@@ -76,7 +76,10 @@ void eDVBSectionReader::data(int)
if ((c = crc32((unsigned)-1, data, r)))
eFatal("crc32 failed! is %x\n", c);
}
- read(data);
+ if (active)
+ read(data);
+ else
+ eDebug("data.. but not active");
}
eDVBSectionReader::eDVBSectionReader(eDVBDemux *demux, eMainloop *context, RESULT &res): demux(demux)
@@ -166,7 +169,8 @@ RESULT eDVBSectionReader::stop()
{
if (!active)
return -1;
-
+
+ active=0;
::ioctl(fd, DMX_STOP);
return 0;