Ticket #5749: t5749_storedpackets_verbose2.diff
File t5749_storedpackets_verbose2.diff, 2.4 KB (added by , 17 years ago) |
---|
-
libs/libmythtv/avformatdecoder.cpp
439 439 { 440 440 while (storedPackets.count() > 0) 441 441 { 442 VERBOSE(VB_PLAYBACK, QString("AFD::~AvFormatDecoder: flushing %1 stored video pkts") 443 .arg(storedPackets.count())); 442 444 AVPacket *pkt = storedPackets.first(); 443 445 storedPackets.removeFirst(); 444 446 av_free_packet(pkt); … … 673 675 // Free up the stored up packets 674 676 while (storedPackets.count() > 0) 675 677 { 678 VERBOSE(VB_PLAYBACK, QString("AFD::SeekReset: flushing %1 stored video pkts") 679 .arg(storedPackets.count())); 676 680 AVPacket *pkt = storedPackets.first(); 677 681 storedPackets.removeFirst(); 678 682 av_free_packet(pkt); … … 3086 3090 } 3087 3091 } 3088 3092 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)); 3089 3096 if (gotvideo) 3090 3097 { 3091 if ( lowbuffers && onlyvideo == 0 &&3092 lastapts < lastvpts + 100 &&3098 if (!onlyvideo && 3099 lastapts < lastvpts + 200 && 3093 3100 lastapts > lastvpts - 10000 && 3094 3101 !ringBuffer->InDVDMenuOrStillFrame()) 3095 3102 { 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())); 3097 3105 storevideoframes = true; 3098 3106 } 3099 3107 else if (onlyvideo >= 0) … … 3105 3113 3106 3114 if (!storevideoframes && storedPackets.count() > 0) 3107 3115 { 3116 VERBOSE(VB_PLAYBACK, QString("AFD::GetFrame: taking one stored video pkt (%1)") 3117 .arg(storedPackets.count())); 3108 3118 if (pkt) 3109 3119 { 3110 3120 av_free_packet(pkt); … … 3228 3238 { 3229 3239 av_dup_packet(pkt); 3230 3240 storedPackets.append(pkt); 3241 VERBOSE(VB_PLAYBACK, QString("AFD::GetFrame: storing video pkt (%1)") 3242 .arg(storedPackets.count())); 3231 3243 pkt = NULL; 3232 3244 continue; 3233 3245 }