]> git.sesse.net Git - mlt/commitdiff
Fix regression seeking to in point on seekable.
authorDan Dennedy <dan@dennedy.org>
Wed, 13 Jul 2011 06:37:46 +0000 (23:37 -0700)
committerDan Dennedy <dan@dennedy.org>
Wed, 13 Jul 2011 06:37:46 +0000 (23:37 -0700)
src/modules/avformat/producer_avformat.c

index 3a25eab7590d6dd5bd1e5d1fb5db25c836a99f04..038e3f1a80e20569728e273a27e4a9e8f67e1995 100644 (file)
@@ -2523,16 +2523,16 @@ static int producer_get_frame( mlt_producer producer, mlt_frame_ptr frame, int i
        // Update timecode on the frame we're creating
        mlt_frame_set_position( *frame, mlt_producer_position( producer ) );
 
-       // Set the position of this producer
-       mlt_position position = self->seekable ? mlt_producer_frame( producer ) : self->nonseek_position++;
-       mlt_properties_set_position( MLT_FRAME_PROPERTIES( *frame ), "avformat_position", position );
-       
        // Set up the video
        producer_set_up_video( self, *frame );
 
        // Set up the audio
        producer_set_up_audio( self, *frame );
 
+       // Set the position of this producer
+       mlt_position position = self->seekable ? mlt_producer_frame( producer ) : self->nonseek_position++;
+       mlt_properties_set_position( MLT_FRAME_PROPERTIES( *frame ), "avformat_position", position );
+
        // Calculate the next timecode
        mlt_producer_prepare_next( producer );