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 ) );
}
char *filename = NULL;
int info = strcmp( id, "xml-string" ) ? 0 : 1;
+ // Strip file:// prefix
+ if ( data && strlen( data ) >= 7 && strncmp( data, "file://", 7 ) == 0 )
+ data += 7;
+
if ( data == NULL || !strcmp( data, "" ) || ( info == 0 && !file_exists( data ) ) )
return NULL;