Ticket #2874: mythtv-setpmt.patch

File mythtv-setpmt.patch, 597 bytes (added by yeasah@…, 19 years ago)

SetPMT called too often on some networks

  • libs/libmythtv/dvbsignalmonitor.cpp

     
    559565void DVBSignalMonitor::HandlePMT(uint program_num, const ProgramMapTable *pmt)
    560566{
    561567    DTVSignalMonitor::HandlePMT(program_num, pmt);
    562     GetDVBChannel()->SetPMT(pmt);
     568
     569    if (pmt->ProgramNumber() == (uint)programNumber && pmt->IsEncrypted())
     570        GetDVBChannel()->SetPMT(pmt);
    563571}
    564572
    565573void DVBSignalMonitor::HandleSTT(const SystemTimeTable *stt)