- zapit: detect uhd-channels

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
TangoCash
2017-10-20 08:02:09 +02:00
committed by Thilo Graf
parent 6aa3ee1c8b
commit 1138784282
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) {