]> git.sesse.net Git - mlt/commitdiff
initialize audio_position so first call to get_audio works
authorDan Dennedy <dan@dennedy.org>
Sat, 4 Feb 2012 20:57:16 +0000 (12:57 -0800)
committerDan Dennedy <dan@dennedy.org>
Sat, 4 Feb 2012 20:59:04 +0000 (12:59 -0800)
src/modules/core/producer_consumer.c

index 1f6e812a0961a199cd10806c577e822e4db41845..ab11b4ded82c56f94c25f645c2585a269dcfda26 100644 (file)
@@ -141,6 +141,7 @@ static int get_frame( mlt_producer this, mlt_frame_ptr frame, int index )
 
                // Since we control the seeking, prevent it from seeking on its own
                mlt_producer_set_speed( cx->producer, 0 );
+               cx->audio_position = -1;
 
                // We will encapsulate a consumer
                cx->consumer = mlt_consumer_new( cx->profile );