Ticket #5749: t5749_storedpackets_verbose.diff

File t5749_storedpackets_verbose.diff, 2.1 KB (added by Janne Grunau, 16 years ago)
  • libs/libmythtv/avformatdecoder.cpp

     
    439439{
    440440    while (storedPackets.count() > 0)
    441441    {
     442        VERBOSE(VB_PLAYBACK, QString("AFD::~AvFormatDecoder: flushing %1 stored video pkts")
     443                .arg(storedPackets.count()));
    442444        AVPacket *pkt = storedPackets.first();
    443445        storedPackets.removeFirst();
    444446        av_free_packet(pkt);
     
    673675        // Free up the stored up packets
    674676        while (storedPackets.count() > 0)
    675677        {
     678            VERBOSE(VB_PLAYBACK, QString("AFD::SeekReset: flushing %1 stored video pkts")
     679                    .arg(storedPackets.count()));
    676680            AVPacket *pkt = storedPackets.first();
    677681            storedPackets.removeFirst();
    678682            av_free_packet(pkt);
     
    30883092
    30893093        if (gotvideo)
    30903094        {
    3091             if (lowbuffers && onlyvideo == 0 &&
     3095            if (!onlyvideo &&
    30923096                lastapts < lastvpts + 100 &&
    30933097                lastapts > lastvpts - 10000 &&
    30943098                !ringBuffer->InDVDMenuOrStillFrame())
    30953099            {
    3096                 //cout << "behind: " << lastapts << " " << lastvpts << endl;
     3100                VERBOSE(VB_PLAYBACK, QString("Audio is %1 ms behind, queuing video pkts (%2)")
     3101                        .arg(lastvpts-lastapts).arg(storedPackets.count()));
    30973102                storevideoframes = true;
    30983103            }
    30993104            else if (onlyvideo >= 0)
     
    31053110
    31063111        if (!storevideoframes && storedPackets.count() > 0)
    31073112        {
     3113            VERBOSE(VB_PLAYBACK, QString("AFD::GetFrame: taking one stored video pkt (%1)")
     3114                    .arg(storedPackets.count()));
    31083115            if (pkt)
    31093116            {
    31103117                av_free_packet(pkt);
     
    32283235        {
    32293236            av_dup_packet(pkt);
    32303237            storedPackets.append(pkt);
     3238            VERBOSE(VB_PLAYBACK, QString("AFD::GetFrame: storing video pkt (%1)")
     3239                    .arg(storedPackets.count()));
    32313240            pkt = NULL;
    32323241            continue;
    32333242        }