Revised attached filter handling and clones
[melted] / src / modules / plus / filter_affine.c
index a3053e1..f3d0b6b 100644 (file)
@@ -70,7 +70,7 @@ static int filter_get_image( mlt_frame this, uint8_t **image, mlt_image_format *
                        mlt_properties_pass( mlt_producer_properties( producer ), properties, "producer." );
                        mlt_properties_pass( mlt_transition_properties( transition ), properties, "transition." );
                        mlt_service_get_frame( mlt_producer_service( producer ), &a_frame, 0 );
-                       mlt_properties_set( mlt_frame_properties( a_frame ), "rescale_interp", "nearest" );
+                       mlt_properties_set( mlt_frame_properties( a_frame ), "rescale.interp", "nearest" );
                        mlt_properties_set( mlt_frame_properties( a_frame ), "distort", "true" );
                        mlt_properties_set_double( mlt_frame_properties( a_frame ), "consumer_aspect_ratio", 
                                                                           mlt_properties_get_double( frame_properties, "consumer_aspect_ratio" ) );
@@ -96,7 +96,7 @@ static mlt_frame filter_process( mlt_filter this, mlt_frame frame )
        char *name = mlt_properties_get( mlt_filter_properties( this ), "_unique_id" );
 
        // Assign the current position to the name
-       mlt_properties_set_position( properties, name, mlt_frame_get_position( frame ) );
+       mlt_properties_set_position( properties, name, mlt_frame_get_position( frame ) - mlt_filter_get_in( this ) );
 
        // Push the frame filter
        mlt_frame_push_service( frame, this );