]> git.sesse.net Git - mlt/commitdiff
support non-explicit abnormal producer usage
authorDan Dennedy <dan@dennedy.org>
Sat, 11 Feb 2012 18:50:48 +0000 (10:50 -0800)
committerDan Dennedy <dan@dennedy.org>
Sat, 11 Feb 2012 18:50:48 +0000 (10:50 -0800)
Non-explicit means the factory was not supplied with a specific service
ID but rather an "abnormal:" prefix to the resource value.

src/modules/core/producer_loader.c

index 2600b62cc46b6374ea85a9fc916dd2b3921051d8..2cebacca9b0495fc0a6f29a6efe541a0ab006f77 100644 (file)
@@ -202,6 +202,7 @@ mlt_producer producer_loader_init( mlt_profile profile, mlt_service_type type, c
 
        // Attach filters if we have a producer and it isn't already xml'd :-)
        if ( producer && strcmp( id, "abnormal" ) &&
+               strncmp( arg, "abnormal:", 9 ) &&
                mlt_properties_get( properties, "xml" ) == NULL &&
                mlt_properties_get( properties, "_xml" ) == NULL &&
                mlt_properties_get( properties, "loader_normalised" ) == NULL )