From: Brian Matherly Date: Sat, 15 Dec 2012 02:56:34 +0000 (-0600) Subject: Fix dynamic text geometry when applied to a clip X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=474c520b587db8a7eb8928dd4a1c632532a6ee96;p=mlt Fix dynamic text geometry when applied to a clip --- diff --git a/src/modules/gtk2/filter_dynamictext.c b/src/modules/gtk2/filter_dynamictext.c index 4b4c15e1..d0f42344 100644 --- a/src/modules/gtk2/filter_dynamictext.c +++ b/src/modules/gtk2/filter_dynamictext.c @@ -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; }