From: Andreas Monzner Date: Tue, 10 Oct 2006 17:29:20 +0000 (+0000) Subject: add ability to clear transponders to scan when first NIT is received X-Git-Tag: 2.6.0~2950 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/62bbd84a6d1dbe6386fd278b8bdbc81e361e000f add ability to clear transponders to scan when first NIT is received --- diff --git a/lib/dvb/scan.cpp b/lib/dvb/scan.cpp index 8aa41dfa..00564cdb 100644 --- a/lib/dvb/scan.cpp +++ b/lib/dvb/scan.cpp @@ -357,6 +357,11 @@ void eDVBScan::channelDone() if (m_ready & validNIT) { SCAN_eDebug("dumping NIT"); + if (m_flags & clearToScanOnFirstNIT) + { + m_ch_toScan.clear(); + m_flags &= ~clearToScanOnFirstNIT; + } std::vector::const_iterator i; for (i = m_NIT->getSections().begin(); i != m_NIT->getSections().end(); ++i) { diff --git a/lib/dvb/scan.h b/lib/dvb/scan.h index 656817f9..96a1528d 100644 --- a/lib/dvb/scan.h +++ b/lib/dvb/scan.h @@ -73,7 +73,11 @@ public: eDVBScan(iDVBChannel *channel, bool usePAT=true, bool debug=true ); ~eDVBScan(); - enum { scanNetworkSearch = 1, scanSearchBAT = 2, scanRemoveServices = 4, scanDontRemoveFeeds=8 }; + enum { + scanNetworkSearch = 1, scanSearchBAT = 2, + scanRemoveServices = 4, scanDontRemoveFeeds = 8, + clearToScanOnFirstNIT = 16 }; + void start(const eSmartPtrList &known_transponders, int flags); enum { evtUpdate, evtNewService, evtFinish, evtFail };