]> git.sesse.net Git - mlt/commitdiff
Fix dynamic text geometry when applied to a clip
authorBrian Matherly <pez4brian@yahoo.com>
Sat, 15 Dec 2012 02:56:34 +0000 (20:56 -0600)
committerBrian Matherly <pez4brian@yahoo.com>
Sat, 15 Dec 2012 02:56:34 +0000 (20:56 -0600)
src/modules/gtk2/filter_dynamictext.c

index 4b4c15e1d22ffecab22a97d6029482ab04c2f009..d0f42344abb6d34bb42aa50c0934b197be4cffcd 100644 (file)
@@ -230,9 +230,6 @@ static void apply_filter( mlt_filter filter, mlt_frame frame )
        mlt_properties_set( watermark_properties, "producer.olcolour", mlt_properties_get( my_properties, "olcolour" ) );
        mlt_properties_set( watermark_properties, "producer.pad", mlt_properties_get( my_properties, "pad" ) );
        mlt_properties_set( watermark_properties, "producer.outline", mlt_properties_get( my_properties, "outline" ) );
-
-       // Process the filter
-       mlt_filter_process( watermark, frame );
 }
 
 /** Get the image.
@@ -264,6 +261,12 @@ static mlt_frame filter_process( mlt_filter filter, mlt_frame frame )
        // Register the get image method
        mlt_frame_push_get_image( frame, filter_get_image );
 
+       mlt_filter watermark = mlt_properties_get_data( MLT_FILTER_PROPERTIES(filter), "_watermark", NULL );
+       if ( watermark )
+       {
+               mlt_filter_process( watermark, frame );
+       }
+
        // Return the frame
        return frame;
 }