]> git.sesse.net Git - mlt/commitdiff
fix loading xml with producer not enclosed in playlist or multitrack
authorDan Dennedy <dan@dennedy.org>
Mon, 18 Jun 2012 20:05:03 +0000 (13:05 -0700)
committerDan Dennedy <dan@dennedy.org>
Mon, 18 Jun 2012 20:05:03 +0000 (13:05 -0700)
src/modules/xml/producer_xml.c

index 7bb89dd1a3be7a1c23e24430d0c25ca948407c22..c41d488a05593534a6a5c72a2f66f9b45c47ac50 100644 (file)
@@ -1725,7 +1725,7 @@ mlt_producer producer_xml_init( mlt_profile profile, mlt_service_type servtype,
                if ( getenv( "MLT_XML_DEEP" ) == NULL )
                {
                        // Now assign additional properties
-                       if ( info == 0 )
+                       if ( info == 0 && !mlt_properties_get( properties, "resource" ) )
                                mlt_properties_set( properties, "resource", data );
 
                        // This tells consumer_xml not to deep copy