From: Dan Dennedy Date: Wed, 3 Apr 2013 02:11:15 +0000 (-0700) Subject: Fix handling filenames in XML with leading or trailing spaces (SF-193). X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=6d651e666b5307c785a50d55c76fa2dfa192a68c;p=mlt Fix handling filenames in XML with leading or trailing spaces (SF-193). --- diff --git a/src/modules/xml/producer_xml.c b/src/modules/xml/producer_xml.c index 29caa136..af82e455 100644 --- a/src/modules/xml/producer_xml.c +++ b/src/modules/xml/producer_xml.c @@ -543,13 +543,13 @@ static void on_end_producer( deserialise_context context, const xmlChar *name ) mlt_service producer = NULL; qualify_property( context, properties, "resource" ); - char *resource = trim( mlt_properties_get( properties, "resource" ) ); + char *resource = mlt_properties_get( properties, "resource" ); // Let Kino-SMIL src be a synonym for resource if ( resource == NULL ) { qualify_property( context, properties, "src" ); - resource = trim( mlt_properties_get( properties, "src" ) ); + resource = mlt_properties_get( properties, "src" ); } // Instantiate the producer @@ -643,7 +643,7 @@ static void on_end_producer( deserialise_context context, const xmlChar *name ) // Get the parent properties properties = MLT_SERVICE_PROPERTIES( parent ); - char *resource = trim( mlt_properties_get( properties, "resource" ) ); + char *resource = mlt_properties_get( properties, "resource" ); // Put the parent producer back context_push_service( context, parent, type ); @@ -1093,7 +1093,7 @@ static void on_end_consumer( deserialise_context context, const xmlChar *name ) { qualify_property( context, properties, "resource" ); qualify_property( context, properties, "target" ); - char *resource = trim( mlt_properties_get( properties, "resource" ) ); + char *resource = mlt_properties_get( properties, "resource" ); if ( context->multi_consumer > 1 || context->qglsl ) {