zapit/src/scansdt.cpp: for SDT updates, allow only tv and radio channels

This commit is contained in:
[CST] Focus
2012-04-02 16:40:09 +04:00
parent 52af48dd89
commit 1b6df6a2f6

View File

@@ -364,10 +364,11 @@ void CSdt::FixWhiteSpaces(std::string &str)
/* check if service type wanted in current scan type */ /* check if service type wanted in current scan type */
bool CSdt::CheckScanType(uint8_t service_type) bool CSdt::CheckScanType(uint8_t service_type)
{ {
int flags;
if(current) if(current)
return true; flags = CServiceScan::SCAN_TVRADIO;
else
int flags = CServiceScan::getInstance()->GetFlags(); flags = CServiceScan::getInstance()->GetFlags();
if ((flags & CServiceScan::SCAN_ALL) == CServiceScan::SCAN_ALL) if ((flags & CServiceScan::SCAN_ALL) == CServiceScan::SCAN_ALL)
return true; return true;