]> git.sesse.net Git - mlt/commitdiff
Add a workaround in pango for old kdenlive countdowns.
authorDan Dennedy <dan@dennedy.org>
Sun, 10 Jul 2011 08:51:43 +0000 (01:51 -0700)
committerDan Dennedy <dan@dennedy.org>
Sun, 10 Jul 2011 08:51:43 +0000 (01:51 -0700)
src/modules/gtk2/producer_pango.c

index 949f0452694fe551553335b198fe767751580d9e..5b6c38044f22d957d8a7b09ef0349445b990b337 100644 (file)
@@ -132,7 +132,9 @@ mlt_producer producer_pango_init( const char *filename )
                mlt_properties_set( properties, "encoding", "UTF-8" );
                mlt_properties_set_int( properties, "weight", PANGO_WEIGHT_NORMAL );
 
-               if ( filename == NULL || ( filename && !strcmp( filename, "" ) ) )
+               if ( filename == NULL || ( filename && ( !strcmp( filename, "" )
+                       // workaround for old kdenlive countdown generator
+                       || strstr( filename, "&lt;producer&gt;" ) ) ) )
                {
                        mlt_properties_set( properties, "markup", "" );
                }