]> git.sesse.net Git - mlt/commitdiff
Fix the repeat/mirror cycle to be relative to start of transition.
authorDan Dennedy <dan@dennedy.org>
Tue, 8 Jun 2010 03:40:40 +0000 (20:40 -0700)
committerDan Dennedy <dan@dennedy.org>
Tue, 8 Jun 2010 04:11:50 +0000 (21:11 -0700)
Before, it was relative to start of timeline, and this meant geometry
animations would start at unpredictable locations.

src/modules/plus/transition_affine.c

index f08a790bb79d49d7a98357b790156971c82991ef..7afc71474695659e38305a61253534659484acb9 100644 (file)
@@ -550,7 +550,7 @@ static mlt_frame transition_process( mlt_transition transition, mlt_frame a_fram
 
        // Assign the current position to the name
        mlt_properties a_props = MLT_FRAME_PROPERTIES( a_frame );
-       mlt_properties_set_position( a_props, name, mlt_frame_get_position( a_frame ) );
+       mlt_properties_set_position( a_props, name, mlt_frame_get_position( a_frame ) - mlt_transition_get_in( transition ) );
 
        // Push the transition on to the frame
        mlt_frame_push_service( a_frame, transition );