From 49ac45d936fd1b0b3287c4a6ed7f6cdcebb80bb9 Mon Sep 17 00:00:00 2001 From: TangoCash Date: Fri, 20 Oct 2017 08:02:09 +0200 Subject: [PATCH] zapit: detect uhd-channels Signed-off-by: Thilo Graf Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/1138784282a00eae8b4aa6ca96458b2e9d7a1ccf Author: TangoCash Date: 2017-10-20 (Fri, 20 Oct 2017) Origin message was: ------------------ - zapit: detect uhd-channels Signed-off-by: Thilo Graf ------------------ This commit was generated by Migit --- src/zapit/include/zapit/channel.h | 1 + src/zapit/src/channel.cpp | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/src/zapit/include/zapit/channel.h b/src/zapit/include/zapit/channel.h index a9c7e38d5..bd0973ec4 100644 --- a/src/zapit/include/zapit/channel.h +++ b/src/zapit/include/zapit/channel.h @@ -219,6 +219,7 @@ class CZapitChannel t_original_network_id getOriginalNetworkId(void) const { return original_network_id; } std::string getScriptName(void) const { return script; } unsigned char getServiceType(bool real=false); + bool isUHD(); bool isHD(); t_channel_id getChannelID(void) const { return channel_id; } transponder_id_t getTransponderId(void) const { return CREATE_TRANSPONDER_ID64(freq, satellitePosition,original_network_id,transport_stream_id); } diff --git a/src/zapit/src/channel.cpp b/src/zapit/src/channel.cpp index 2c5f28157..4180004e9 100644 --- a/src/zapit/src/channel.cpp +++ b/src/zapit/src/channel.cpp @@ -197,6 +197,13 @@ unsigned char CZapitChannel::getServiceType(bool real) ST_DIGITAL_RADIO_SOUND_SERVICE : ST_DIGITAL_TELEVISION_SERVICE; } +bool CZapitChannel::isUHD() +{ + if (serviceType == 0x1f) + return true; + return false; +} + bool CZapitChannel::isHD() { switch(serviceType) {