Ticket #1370: nit-debug.2.patch

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

better version

  • libs/libmythtv/mpeg/dvbtables.cpp

     
    77void NetworkInformationTable::Parse(void) const
    88{
    99    _ptrs.clear();
     10
     11    VERBOSE(VB_IMPORTANT, "NIT("<<((void*)pesdata())<<")::Parse() "
     12            <<"nit("<<NetworkID()<<") "
     13            <<"ndl("<<NetworkDescriptorsLength()<<")");
     14    for (uint i = 0; i < Length(); i++)
     15        cerr<<QString("0x%1").arg(pesdata()[i]);
     16    cerr<<endl;
     17
    1018    _tsc_ptr = pesdata() + 10 + NetworkDescriptorsLength();
     19    VERBOSE(VB_IMPORTANT, "NIT("<<((void*)pesdata())<<"): "
     20            <<"tsc_ptr("<<((void*)_tsc_ptr)<<")");
     21    VERBOSE(VB_IMPORTANT, "NIT("<<((void*)pesdata())<<"): "
     22            <<"tsc("<<TransportStreamCount()<<")");
     23
    1124    _ptrs.push_back(_tsc_ptr + 2);
    1225    for (uint i = 0; i < TransportStreamCount(); i++)
     26    {
     27        VERBOSE(VB_IMPORTANT, "NIT("<<((void*)pesdata())<<"): "
     28                <<"_ptrs["<<i<<"]("<<((void*)_ptrs[i])<<")");
    1329        _ptrs.push_back(_ptrs[i] + 6 + TransportDescriptorsLength(i));
    14 
     30    }
    1531}
    1632
    1733QString NetworkInformationTable::toString(void) const