]> git.sesse.net Git - mlt/commitdiff
Continue A/V sync fix when splitting audio and video (kdenlive-2694).
authorDan Dennedy <dan@dennedy.org>
Tue, 8 Jan 2013 07:46:40 +0000 (23:46 -0800)
committerDan Dennedy <dan@dennedy.org>
Tue, 8 Jan 2013 07:46:40 +0000 (23:46 -0800)
Previous version only applied to the audio stream when in > 0.

src/modules/avformat/producer_avformat.c

index 8cc9231cdefa6f26fcca53b28a9ab94b7df24426..807fb098e14cae0322026893ac8854038a60d399 100644 (file)
@@ -2148,7 +2148,7 @@ static int seek_audio( producer_avformat self, mlt_position position, double tim
        int paused = 0;
 
        // Seek if necessary
-       if ( self->seekable && position != self->audio_expected )
+       if ( self->seekable && ( position != self->audio_expected || self->last_position < 0 ) )
        {
                if ( self->last_position == POSITION_INITIAL )
                {