X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmiracle%2Fmiracle_unit.c;h=b10179b2e4218eb75bf46f7214bbff2a91729d77;hb=0bd5d91026b8bd143f957f119d61d5fedd45cf70;hp=f7023d058e45e0f9ee1dd0186a784854f89919da;hpb=c63b98c399b13d0672beb9cabba832a71d45a2ea;p=melted diff --git a/src/miracle/miracle_unit.c b/src/miracle/miracle_unit.c index f7023d0..b10179b 100644 --- a/src/miracle/miracle_unit.c +++ b/src/miracle/miracle_unit.c @@ -142,10 +142,9 @@ static mlt_producer create_producer( miracle_unit unit, char *file ) { // 1st Line preferences if ( strstr( file, ".inigo" ) ) - { - char *args[ 2 ] = { file, NULL }; - result = mlt_factory_producer( "inigo", args ); - } + result = mlt_factory_producer( "inigo_file", file ); + else if ( strstr( file, ".westley" ) ) + result = mlt_factory_producer( "westley", file ); else if ( strstr( file, ".mpg" ) ) result = mlt_factory_producer( "mcmpeg", file ); else if ( strstr( file, ".mpeg" ) ) @@ -166,7 +165,9 @@ static mlt_producer create_producer( miracle_unit unit, char *file ) result = mlt_factory_producer( "pixbuf", file ); else if ( strstr( file, ".txt" ) ) result = mlt_factory_producer( "pango", file ); - + else if ( strstr( file, ".ogg" ) ) + result = mlt_factory_producer( "vorbis", file ); + // 2nd Line fallbacks if ( result == NULL && strstr( file, ".dv" ) ) result = mlt_factory_producer( "libdv", file ); @@ -175,6 +176,10 @@ static mlt_producer create_producer( miracle_unit unit, char *file ) // 3rd line fallbacks if ( result == NULL ) + result = mlt_factory_producer( "avformat", file ); + + // 4th line fallbacks + if ( result == NULL ) result = mlt_factory_producer( "ffmpeg", file ); // Now store the result