From 8081cead84d58f14bd7f33c59988572db098a0b4 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Sat, 7 Dec 2013 22:11:06 -0600 Subject: [PATCH] Dynamic text uses qtext first and falls back to pango --- src/modules/plus/filter_dynamictext.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/modules/plus/filter_dynamictext.c b/src/modules/plus/filter_dynamictext.c index 7149dd98..13c196f9 100644 --- a/src/modules/plus/filter_dynamictext.c +++ b/src/modules/plus/filter_dynamictext.c @@ -211,7 +211,7 @@ static void setup_producer( mlt_filter filter, mlt_producer producer, mlt_frame // Apply keyword substitution before passing the text to the filter. char result[MAX_TEXT_LEN] = ""; substitute_keywords( filter, result, dynamic_text, frame ); - mlt_properties_set( producer_properties, "markup", (char*)result ); + mlt_properties_set( producer_properties, "text", (char*)result ); } // Pass the properties to the pango producer @@ -315,7 +315,11 @@ mlt_filter filter_dynamictext_init( mlt_profile profile, mlt_service_type type, { mlt_filter filter = mlt_filter_new(); mlt_transition transition = mlt_factory_transition( profile, "composite", NULL ); - mlt_producer producer = mlt_factory_producer( profile, mlt_environment( "MLT_PRODUCER" ), "pango:" ); + mlt_producer producer = mlt_factory_producer( profile, mlt_environment( "MLT_PRODUCER" ), "qtext:" ); + + // Use pango if qtext is not available. + if( !producer ) + producer = mlt_factory_producer( profile, mlt_environment( "MLT_PRODUCER" ), "pango:" ); if ( filter && transition && producer ) { -- 2.39.2