]> git.sesse.net Git - mlt/blobdiff - src/modules/core/producer_loader.c
accept file:// prefix on MLT XML file
[mlt] / src / modules / core / producer_loader.c
index d381e3bc58b51968c571036ec1e6c033679302f7..7b43c0c2e8722a2bda658e02562e15625d50d514 100644 (file)
@@ -90,11 +90,16 @@ static mlt_producer create_producer( mlt_profile profile, char *file )
                        p ++;
                }
 
+               // Strip file:// prefix
+               p = lookup;
+               if ( strncmp( lookup, "file://", 7 ) == 0 )
+                       p += 7;
+
                // Iterate through the dictionary
                for ( i = 0; result == NULL && i < mlt_properties_count( dictionary ); i ++ )
                {
                        char *name = mlt_properties_get_name( dictionary, i );
-                       if ( fnmatch( name, lookup, 0 ) == 0 )
+                       if ( fnmatch( name, p, 0 ) == 0 )
                                result = create_from( profile, file, mlt_properties_get_value( dictionary, i ) );
                }