Ticket #1887: 1887-part1-v1.patch

File 1887-part1-v1.patch, 716 bytes (added by danielk, 19 years ago)

Patch for DVBRecorder

  • libs/libmythtv/dvbrecorder.cpp

     
    184184    QMutexLocker change_lock(&_pid_lock);
    185185
    186186    int progNum = _stream_data->DesiredProgram();
    187     _pmt_pid = _pat->FindPID(progNum);
     187    uint pmtpid = _pat->FindPID(progNum);
    188188
     189    if (!pmtpid)
     190    {
     191        VERBOSE(VB_RECORD, LOC + "SetPAT(): "
     192                "Ignoring PAT not containing our desired program...");
     193        return;
     194    }
     195
     196    _pmt_pid = pmtpid;
     197
    189198    VERBOSE(VB_RECORD, LOC + QString("SetPAT(%1 on 0x%2)")
    190199            .arg(progNum).arg(_pmt_pid,0,16));
    191200