]> git.sesse.net Git - mlt/commitdiff
producer_framebuffer.c: interpret negative speed as reverse
authorddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Mon, 13 Apr 2009 07:35:35 +0000 (07:35 +0000)
committerddennedy <ddennedy@d19143bc-622f-0410-bfdd-b5b2a6649095>
Mon, 13 Apr 2009 07:35:35 +0000 (07:35 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@1401 d19143bc-622f-0410-bfdd-b5b2a6649095

src/modules/kdenlive/producer_framebuffer.c

index e782895390d5a2b57f935d322f17d65942d2d4e5..10dc22fecee88b00686cc5610b63607404f55701 100644 (file)
@@ -251,6 +251,11 @@ mlt_producer producer_framebuffer_init( mlt_profile profile, mlt_service_type ty
                // Grab some stuff from the real_producer
                mlt_properties_pass_list( properties, MLT_PRODUCER_PROPERTIES( real_producer ), "length, width,height" );
 
+               if ( speed < 0 )
+               {
+                       speed = -speed;
+                       mlt_properties_set_int( properties, "reverse", 1 );
+               }
 
                if ( speed != 1.0 )
                {