X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Finigo%2Finigo.c;h=b1f3e04cb81282fbf6512645bd4be36c958c4756;hb=9b115c18489fdc84e2198fef65e4e444f579ff24;hp=76edbc923785ace5729370f4b48681e4c2e72239;hpb=75288bcb5a5a3925cf8e94ba12f034a0a8fd6758;p=melted diff --git a/src/inigo/inigo.c b/src/inigo/inigo.c index 76edbc9..b1f3e04 100644 --- a/src/inigo/inigo.c +++ b/src/inigo/inigo.c @@ -64,7 +64,7 @@ static void transport_action( mlt_producer producer, char *value ) if ( time == last ) break; last = time; - fprintf( stderr, "%d: %lld\n", i, time ); + fprintf( stderr, "%d: %d\n", i, time ); } } break; @@ -168,7 +168,7 @@ static void transport( mlt_producer producer, mlt_consumer consumer ) transport_action( producer, ( char * )&value ); if ( mlt_properties_get_int( properties, "stats_off" ) == 0 ) - fprintf( stderr, "Current Position: %10lld\r", mlt_producer_position( producer ) ); + fprintf( stderr, "Current Position: %10d\r", mlt_producer_position( producer ) ); } fprintf( stderr, "\n" ); @@ -183,7 +183,7 @@ int main( int argc, char **argv ) char *name = NULL; // Construct the factory - mlt_factory_init( getenv( "MLT_REPOSITORY" ) ); + mlt_factory_init( NULL ); // Check for serialisation switch first for ( i = 1; i < argc; i ++ ) @@ -205,9 +205,6 @@ int main( int argc, char **argv ) // Get inigo's properties mlt_properties inigo_props = mlt_producer_properties( inigo ); - // Get the field service from inigo - mlt_field field = mlt_properties_get_data( inigo_props, "field", 0 ); - // Get the last group mlt_properties group = mlt_properties_get_data( inigo_props, "group", 0 ); @@ -252,8 +249,8 @@ int main( int argc, char **argv ) mlt_properties properties = mlt_consumer_properties( consumer ); mlt_properties_inherit( properties, group ); - // Connect consumer to tractor - mlt_consumer_connect( consumer, mlt_field_service( field ) ); + // Connect consumer to inigo + mlt_consumer_connect( consumer, mlt_producer_service( inigo ) ); // Start the consumer mlt_consumer_start( consumer ); @@ -274,7 +271,9 @@ int main( int argc, char **argv ) { fprintf( stderr, "Usage: inigo [ -group [ name=value ]* ]\n" " [ -consumer id[:arg] [ name=value ]* ]\n" - " [ -filter id[:arg] [ name=value ] * ]\n" + " [ -filter filter[:arg] [ name=value ] * ]\n" + " [ -attach filter[:arg] [ name=value ] * ]\n" + " [ -mix length [ -mixer transition ]* ]\n" " [ -transition id[:arg] [ name=value ] * ]\n" " [ -blank frames ]\n" " [ -track ]\n"