Ticket #1970: dvbrecorder_save_pidfilters.diff

File dvbrecorder_save_pidfilters.diff, 829 bytes (added by Janne <janne-mythtv@…>, 13 years ago)
  • libs/libmythtv/dvbrecorder.cpp

    old new bool DVBRecorder::AdjustFilters(void) 
    435435    add_stream_type.push_back(StreamID::PrivSec);
    436436    _stream_data->AddListeningPID(MPEG_PAT_PID);
    437437
    438     for (uint i = 0; i < _input_pat->ProgramCount(); i++)
     438    for (uint i = 0; _pat && i < _pat->ProgramCount(); i++)
    439439    {
    440         add_pid.push_back(_input_pat->ProgramPID(i));
     440        add_pid.push_back(_pat->ProgramPID(i));
    441441        add_stream_type.push_back(StreamID::PrivSec);
    442         _stream_data->AddListeningPID(_input_pat->ProgramPID(i));
     442        _stream_data->AddListeningPID(_pat->ProgramPID(i));
    443443    }
    444444
    445445    // Record the streams in the PMT...