zapit: detect uhd-channels

Signed-off-by: Thilo Graf <dbt@novatux.de>


Origin commit data
------------------
Branch: ni/coolstream
Commit: 1138784282
Author: TangoCash <eric@loxat.de>
Date: 2017-10-20 (Fri, 20 Oct 2017)

Origin message was:
------------------
- zapit: detect uhd-channels

Signed-off-by: Thilo Graf <dbt@novatux.de>


------------------
This commit was generated by Migit
This commit is contained in:
TangoCash
2017-10-20 08:02:09 +02:00
committed by Thilo Graf
parent 34747c3914
commit 49ac45d936
2 changed files with 8 additions and 0 deletions

View File

@@ -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); }

View File

@@ -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) {