Ticket #1823: dvbdescriptor-updates.diff
File dvbdescriptor-updates.diff, 1.7 KB (added by , 18 years ago) |
---|
-
libs/libmythtv/mpeg/dvbdescriptors.cpp
old new 323 323 str.append(" (TV)"); 324 324 else if (IsDigitalAudio()) 325 325 str.append(" (Radio)"); 326 else if (IsHDTV()) 327 str.append(" (HDTV)"); 328 else if (IsTeletext()) 329 str.append(" (Teletext)"); 326 330 else 327 str.append(QString(" (Unknown %1)").arg(ServiceType() ));331 str.append(QString(" (Unknown %1)").arg(ServiceType(),2,16)); 328 332 329 333 return str; 330 334 } -
libs/libmythtv/mpeg/dvbdescriptors.h
old new 1159 1159 kServiceTypeRCS_Map = 0x0E, 1160 1160 kServiceTypeRCS_FLS = 0x0F, 1161 1161 kServiceTypeDVB_MHP = 0x10, 1162 kServiceTypeHDTV = 0x19, 1162 1163 }; 1163 1164 // service_type 8 2.0 1164 1165 uint ServiceType(void) const { return _data[2]; } … … 1180 1181 { return ServiceType() == kServiceTypeDigitalTelevision; } 1181 1182 bool IsDigitalAudio(void) const 1182 1183 { return ServiceType() == kServiceTypeDigitalRadioSound; } 1184 bool IsHDTV(void) const 1185 { return ServiceType() == kServiceTypeHDTV; } 1186 bool IsTeletext(void) const 1187 { return ServiceType() == kServiceTypeDataBroadcast; } 1183 1188 1184 1189 QString toString() const; 1185 1190 };