]> git.sesse.net Git - mlt/commitdiff
Fix consumer producer not updating frames in Kdenlive.
authorDan Dennedy <dan@dennedy.org>
Mon, 11 Oct 2010 03:46:31 +0000 (20:46 -0700)
committerDan Dennedy <dan@dennedy.org>
Mon, 11 Oct 2010 03:46:31 +0000 (20:46 -0700)
src/modules/core/producer_consumer.c

index 7cfd7e4a028c28841e1a96e9f214e0ec5003eeb2..d36fc451a3b83e54a5a71b4cb4b5af7cb42325f2 100644 (file)
@@ -150,7 +150,9 @@ static int get_frame( mlt_producer this, mlt_frame_ptr frame, int index )
 
                // Seek the producer to the correct place
                // Calculate our positions
-               double actual_position = mlt_producer_get_speed( this ) * (double)mlt_producer_position( this );
+               double actual_position = (double)mlt_producer_position( this );
+               if ( mlt_producer_get_speed( this ) != 0 )
+                       actual_position *= mlt_producer_get_speed( this );
                mlt_position need_first = floor( actual_position );
                mlt_producer_seek( cx->producer, need_first );