]> git.sesse.net Git - mlt/blobdiff - src/modules/fezzik/producer_fezzik.c
fezzik now accepts service:resource and strips \'avformat:\' before fallback avformat...
[mlt] / src / modules / fezzik / producer_fezzik.c
index 3f0445b16be03a1608d83eeb65e0c94e4143a399..e409afc6e42cca5887bd82e4e0da0d513edbf041 100644 (file)
@@ -81,11 +81,20 @@ static mlt_producer create_producer( char *file )
 
        // 3rd line fallbacks 
        if ( result == NULL )
-               result = mlt_factory_producer( "avformat", file );
+               result = mlt_factory_producer( "avformat", file + 
+                       ( strncmp( file, "avformat:", 9 ) ? 0 : 9 ) );
 
        // 4th - allow explicit construction
        if ( result == NULL )
-               result = mlt_factory_producer( file, NULL );
+       {
+               char *arg = strchr( file, ':' );
+               if ( arg )
+               {
+                       arg[0] = 0;
+                       arg++;
+               }
+               result = mlt_factory_producer( file, arg );
+       }
 
        return result;
 }