From 1b6df6a2f6b5d3e4f5af61c717d97e6b8c47dd4d Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Mon, 2 Apr 2012 16:40:09 +0400 Subject: [PATCH] zapit/src/scansdt.cpp: for SDT updates, allow only tv and radio channels --- src/zapit/src/scansdt.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/zapit/src/scansdt.cpp b/src/zapit/src/scansdt.cpp index cfcc594f4..ba2ed2d7c 100644 --- a/src/zapit/src/scansdt.cpp +++ b/src/zapit/src/scansdt.cpp @@ -364,10 +364,11 @@ void CSdt::FixWhiteSpaces(std::string &str) /* check if service type wanted in current scan type */ bool CSdt::CheckScanType(uint8_t service_type) { + int flags; if(current) - return true; - - int flags = CServiceScan::getInstance()->GetFlags(); + flags = CServiceScan::SCAN_TVRADIO; + else + flags = CServiceScan::getInstance()->GetFlags(); if ((flags & CServiceScan::SCAN_ALL) == CServiceScan::SCAN_ALL) return true;