From ca4611eb648f5ed377c8c7e4711519f0be0e4859 Mon Sep 17 00:00:00 2001 From: satbaby Date: Sun, 5 Sep 2010 17:41:48 +0000 Subject: [PATCH] -add astra19.2-digital+ to blacklist git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@754 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- src/zapit/src/descriptors.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/zapit/src/descriptors.cpp b/src/zapit/src/descriptors.cpp index a5efc7121..1138a3311 100644 --- a/src/zapit/src/descriptors.cpp +++ b/src/zapit/src/descriptors.cpp @@ -388,6 +388,15 @@ uint8_t fix_service_type(uint8_t type) return 1; return type; } +bool check_blacklisted_digital_plus(const t_original_network_id onid, const t_transport_stream_id tsid) +{ + if ( (onid == 0x0001) && + ((tsid == 0x03F0) || (tsid == 0x03F8) || (tsid == 0x0404) || (tsid == 0x0408) || (tsid == 0x040A) || (tsid == 0x040E) || + (tsid == 0x0412) || (tsid == 0x0416) || (tsid == 0x041A) || (tsid == 0x041E) || (tsid == 0x0420) || (tsid == 0x0422) || (tsid == 0x0424)) ) + return true; + else + return false; +} int parse_pat(); int pat_get_pmt_pid (CZapitChannel * const channel); @@ -473,6 +482,11 @@ void service_descriptor(const unsigned char * const buffer, const t_service_id s { in_blacklist = true; } + else if((check_blacklisted_digital_plus(original_network_id, transport_stream_id))) + { + providerName = "Digital+"; + in_blacklist = true; + } if (in_blacklist) { if (((unsigned char)buffer[4 + service_provider_name_length + 1]) >= 0x20) // no encoding info