remove unneeded signals ( eDVBChannel::m_stateChanged give us the same informations )
[enigma2.git] / lib / dvb / demux.cpp
index f6bdbd7b5602cf9766786cd2c35598504a1ef6e8..f50f4bb29a9a4d02ed8f9202f7f69e0bd57df2d9 100644 (file)
@@ -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;