Ticket #5749: t5749_storedpackets_verbose2.diff

File t5749_storedpackets_verbose2.diff, 2.4 KB (added by Janne Grunau, 17 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);
     
    30863090            }
    30873091        }
    30883092
     3093        VERBOSE(VB_PLAYBACK, QString("gotvideo: %1, pts diff: %2, lastvpts: "
     3094                                     "%3, lastapts: %4").arg(gotvideo)
     3095                .arg(lastvpts-lastapts).arg(lastvpts).arg(lastapts));
    30893096        if (gotvideo)
    30903097        {
    3091             if (lowbuffers && onlyvideo == 0 &&
    3092                 lastapts < lastvpts + 100 &&
     3098            if (!onlyvideo &&
     3099                lastapts < lastvpts + 200 &&
    30933100                lastapts > lastvpts - 10000 &&
    30943101                !ringBuffer->InDVDMenuOrStillFrame())
    30953102            {
    3096                 //cout << "behind: " << lastapts << " " << lastvpts << endl;
     3103                VERBOSE(VB_PLAYBACK, QString("Audio is %1 ms behind, queuing video pkts (%2)")
     3104                        .arg(lastvpts-lastapts).arg(storedPackets.count()));
    30973105                storevideoframes = true;
    30983106            }
    30993107            else if (onlyvideo >= 0)
     
    31053113
    31063114        if (!storevideoframes && storedPackets.count() > 0)
    31073115        {
     3116            VERBOSE(VB_PLAYBACK, QString("AFD::GetFrame: taking one stored video pkt (%1)")
     3117                    .arg(storedPackets.count()));
    31083118            if (pkt)
    31093119            {
    31103120                av_free_packet(pkt);
     
    32283238        {
    32293239            av_dup_packet(pkt);
    32303240            storedPackets.append(pkt);
     3241            VERBOSE(VB_PLAYBACK, QString("AFD::GetFrame: storing video pkt (%1)")
     3242                    .arg(storedPackets.count()));
    32313243            pkt = NULL;
    32323244            continue;
    32333245        }