Ticket #1370: nit-debug.3.patch

File nit-debug.3.patch, 1.3 KB (added by danielk, 15 years ago)

updated debug patch

  • libs/libmythtv/mpeg/dvbtables.cpp

     
    66
    77void NetworkInformationTable::Parse(void) const
    88{
     9    VERBOSE(VB_IMPORTANT, "NIT("<<((void*)pesdata())<<")::Parse() "
     10            <<"nit("<<NetworkID()<<") "
     11            <<"ndl("<<NetworkDescriptorsLength()<<")");
     12    for (uint i = 0; i < Length(); i++)
     13    {
     14        cerr<<QString("0x%1 ").arg(pesdata()[i],2,16);
     15        if (!(i % 8))
     16            cerr<<endl;
     17    }
     18    cerr<<endl;
     19
    920    _tsc_ptr = pesdata() + 10 + NetworkDescriptorsLength();
     21    VERBOSE(VB_IMPORTANT, "NIT("<<((void*)pesdata())<<"): "
     22            <<"tsc_ptr("<<((void*)_tsc_ptr)<<")");
     23    VERBOSE(VB_IMPORTANT, "NIT("<<((void*)pesdata())<<"): "
     24            <<"tsc("<<TransportStreamDataLength()<<")");
    1025
    1126    _ptrs.clear();
    1227    _ptrs.push_back(_tsc_ptr + 2);
    1328    for (uint i=0; _ptrs[i] + 6 <= _ptrs[0] + TransportStreamDataLength(); i++)
     29    {
     30        VERBOSE(VB_IMPORTANT, "NIT("<<((void*)pesdata())<<"): "
     31                <<"_ptrs["<<i<<"]("<<((void*)_ptrs[i])<<")");
    1432        _ptrs.push_back(_ptrs[i] + 6 + TransportDescriptorsLength(i));
     33    }
    1534}
    1635
    1736QString NetworkInformationTable::toString(void) const