Ticket #3031: 3031-dbg-1.patch

File 3031-dbg-1.patch, 4.0 KB (added by danielk, 18 years ago)

Debugging patch

  • libs/libmythtv/dvbrecorder.cpp

     
    192192{
    193193    if (!_pat)
    194194    {
    195         VERBOSE(VB_RECORD, LOC + "SetPAT(NULL)");
     195        VERBOSE(VB_RECORD, LOC + "HandlePAT(NULL)");
    196196        return;
    197197    }
    198198
     
    203203
    204204    if (!pmtpid)
    205205    {
    206         VERBOSE(VB_RECORD, LOC + "SetPAT(): "
    207                 "Ignoring PAT not containing our desired program...");
     206        VERBOSE(VB_RECORD, LOC + "HandlePAT(): Ignoring PAT not "
     207                <<QString("containing our desired program %1").arg(progNum)
     208                <<"\n"<<_pat->toString()<<"\n");
     209
    208210        return;
    209211    }
    210212
    211213    _pmt_pid = pmtpid;
    212214
    213     VERBOSE(VB_RECORD, LOC + QString("SetPAT(%1 on 0x%2)")
     215    VERBOSE(VB_RECORD, LOC + QString("HandlePAT(%1 on 0x%2)")
    214216            .arg(progNum).arg(_pmt_pid,0,16));
    215217
    216218    ProgramAssociationTable *oldpat = _input_pat;
     
    230232
    231233    if ((int)progNum == _stream_data->DesiredProgram())
    232234    {
    233         VERBOSE(VB_RECORD, LOC + "SetPMT("<<progNum<<")");
     235        VERBOSE(VB_RECORD, LOC + "HandlePMT("<<progNum<<")");
    234236        ProgramMapTable *oldpmt = _input_pmt;
    235237        _input_pmt = new ProgramMapTable(*_pmt);
    236238        dvbchannel->SetPMT(_input_pmt);
     
    242244
    243245        _reset_pid_filters = true;
    244246    }
     247    else
     248    {
     249        VERBOSE(VB_RECORD, LOC + "HandlePMT("<<progNum<<"): No match"
     250                <<"\n"<<_pmt->toString()<<"\n");
     251    }
    245252}
    246253
    247254void DVBRecorder::HandleSTT(const SystemTimeTable*)
  • libs/libmythtv/hdhrrecorder.cpp

     
    185185{
    186186    if (!_pat)
    187187    {
    188         VERBOSE(VB_RECORD, LOC + "SetPAT(NULL)");
     188        VERBOSE(VB_RECORD, LOC + "HandlePAT(NULL)");
    189189        return;
    190190    }
    191191
     
    196196
    197197    if (!pmtpid)
    198198    {
    199         VERBOSE(VB_RECORD, LOC + "SetPAT(): "
    200                 "Ignoring PAT not containing our desired program...");
     199        VERBOSE(VB_RECORD, LOC + "HandlePAT(): Ignoring PAT not "
     200                <<QString("containing our desired program %1").arg(progNum)
     201                <<"\n"<<_pat->toString()<<"\n");
     202
    201203        return;
    202204    }
    203205
    204     VERBOSE(VB_RECORD, LOC + QString("SetPAT(%1 on 0x%2)")
     206    VERBOSE(VB_RECORD, LOC + QString("HandlePAT(%1 on 0x%2)")
    205207            .arg(progNum).arg(pmtpid,0,16));
    206208
    207209    ProgramAssociationTable *oldpat = _input_pat;
     
    217219
    218220    if ((int)progNum == _stream_data->DesiredProgram())
    219221    {
    220         VERBOSE(VB_RECORD, LOC + "SetPMT("<<progNum<<")");
     222        VERBOSE(VB_RECORD, LOC + "HandlePMT("<<progNum<<")");
    221223        ProgramMapTable *oldpmt = _input_pmt;
    222224        _input_pmt = new ProgramMapTable(*_pmt);
    223225        delete oldpmt;
    224226
    225227        _reset_pid_filters = true;
    226228    }
     229    else
     230    {
     231        VERBOSE(VB_RECORD, LOC + "HandlePMT("<<progNum<<") no match"
     232                <<"\n"<<_pmt->toString()<<"\n");
     233    }
    227234}
    228235
    229236void HDHRRecorder::HandleSingleProgramPAT(ProgramAssociationTable *pat)
  • libs/libmythtv/dtvsignalmonitor.cpp

     
    278278    int pmt_pid = pat->FindPID(programNumber);
    279279    if (GetStreamData() && pmt_pid)
    280280    {
     281        VERBOSE(VB_RECORD, LOC + "HandlePAT() found program "<<programNumber
     282                <<"\n"<<pat->toString()<<"\n");
     283
    281284        AddFlags(kDTVSigMon_PATMatch);
    282285        GetStreamData()->AddListeningPID(pmt_pid);
    283286        return;
     
    322325        return; // Not the PMT we are looking for...
    323326    }
    324327
     328    VERBOSE(VB_RECORD, LOC + "HandlePMT() found program "<<programNumber
     329            <<"\n"<<pmt->toString()<<"\n");
     330
    325331    if (pmt->IsEncrypted())
    326332        GetStreamData()->TestDecryption(pmt);
    327333