From: Dan Dennedy Date: Tue, 31 May 2011 05:04:25 +0000 (-0700) Subject: Fix decklink choppy playback (3308341). X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=536597bab920215009b6d2256af0a30f88ce15f3;p=mlt Fix decklink choppy playback (3308341). This would occur after several pause and play cycles. --- diff --git a/src/modules/decklink/consumer_decklink.cpp b/src/modules/decklink/consumer_decklink.cpp index cf31fe94..66d9e52b 100644 --- a/src/modules/decklink/consumer_decklink.cpp +++ b/src/modules/decklink/consumer_decklink.cpp @@ -348,7 +348,7 @@ public: } // While rebuffering - if ( isBuffering() ) + if ( videoCount == 0 && isBuffering() ) { // Only append audio to reach the ideal level and not overbuffer. int ideal = ( m_preroll - 1 ) * bmdAudioSampleRate48kHz / m_fps;