diff --git a/mythtv/libs/libmythtv/eithelper.cpp b/mythtv/libs/libmythtv/eithelper.cpp
index 9ee2cc8..221647a 100644
|
a
|
b
|
static inline void parse_dvb_component_descriptors(desc_list_t list,
|
| 285 | 285 | |
| 286 | 286 | void EITHelper::AddEIT(const DVBEventInformationTable *eit) |
| 287 | 287 | { |
| | 288 | uint chanid = GetChanID(eit->ServiceID(), eit->OriginalNetworkID(), |
| | 289 | eit->TSID()); |
| | 290 | if (!chanid) |
| | 291 | return; |
| | 292 | |
| 288 | 293 | uint descCompression = (eit->TableID() > 0x80) ? 2 : 1; |
| 289 | 294 | uint fix = fixup.value(eit->OriginalNetworkID() << 16); |
| 290 | 295 | fix |= fixup.value((((uint64_t)eit->TSID()) << 32) | |
| … |
… |
void EITHelper::AddEIT(const DVBEventInformationTable *eit)
|
| 295 | 300 | (uint64_t)eit->ServiceID()); |
| 296 | 301 | fix |= EITFixUp::kFixGenericDVB; |
| 297 | 302 | |
| 298 | | uint chanid = GetChanID(eit->ServiceID(), eit->OriginalNetworkID(), |
| 299 | | eit->TSID()); |
| 300 | | if (!chanid) |
| 301 | | return; |
| 302 | | |
| 303 | 303 | uint tableid = eit->TableID(); |
| 304 | 304 | uint version = eit->Version(); |
| 305 | 305 | for (uint i = 0; i < eit->EventCount(); i++) |
| … |
… |
uint EITHelper::GetChanID(uint atsc_major, uint atsc_minor)
|
| 648 | 648 | return max(*it, 0); |
| 649 | 649 | |
| 650 | 650 | uint chanid = get_chan_id_from_db(sourceid, atsc_major, atsc_minor); |
| 651 | | if (chanid) |
| 652 | | srv_to_chanid[key] = chanid; |
| | 651 | srv_to_chanid[key] = chanid; |
| 653 | 652 | |
| 654 | 653 | return chanid; |
| 655 | 654 | } |
| … |
… |
uint EITHelper::GetChanID(uint serviceid, uint networkid, uint tsid)
|
| 667 | 666 | return max(*it, 0); |
| 668 | 667 | |
| 669 | 668 | uint chanid = get_chan_id_from_db(sourceid, serviceid, networkid, tsid); |
| 670 | | if (chanid) |
| 671 | | srv_to_chanid[key] = chanid; |
| | 669 | srv_to_chanid[key] = chanid; |
| 672 | 670 | |
| 673 | 671 | return chanid; |
| 674 | 672 | } |