From aa3d1162bef321bd2d0effdafce6eb080660a7ca Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Tue, 12 Jul 2005 21:10:02 +0000 Subject: remove unneeded signals ( eDVBChannel::m_stateChanged give us the same informations ) --- lib/dvb/demux.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib/dvb/demux.cpp') 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; -- cgit v1.2.3