Ticket #1485: dvb_scanning_fixes-v2.patch

File dvb_scanning_fixes-v2.patch, 1007 bytes (added by danielk, 15 years ago)

modified dvb scanning patch

  • libs/libmythtv/siscan.cpp

     
    223223    // Add pmts to list, so we can do MPEG scan properly.
    224224    ScanStreamData *sd = GetDTVSignalMonitor()->GetScanStreamData();
    225225    for (uint i = 0; i < pat->ProgramCount(); i++)
    226         sd->AddListeningPID(pat->ProgramPID(i));
     226    {
     227        if (pat->ProgramPID(i)) // don't add NIT "program", MPEG/ATSC safe.
     228            sd->AddListeningPID(pat->ProgramPID(i));
     229    }
    227230}
    228231
    229232void SIScan::HandleVCT(uint, const VirtualChannelTable*)
     
    361364                                  bool wait_until_complete)
    362365{
    363366    const DVBStreamData &dsd = (const DVBStreamData &)(*sd);
    364     if (wait_until_complete && !dsd.HasCachedSDT())
     367    if (wait_until_complete && !dsd.HasCachedSDT() && !dsd.HasCachedAllNIT())
    365368        return;
    366369
    367370    emit ServiceScanUpdateText(tr("Updating Services"));