X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Finigo%2Finigo.c;h=41a03415ef1f7de481cd90dd9114ebe23e184449;hb=bd208d01a2a792e698a9b4884b43602b2f245a8f;hp=76edbc923785ace5729370f4b48681e4c2e72239;hpb=75288bcb5a5a3925cf8e94ba12f034a0a8fd6758;p=melted diff --git a/src/inigo/inigo.c b/src/inigo/inigo.c index 76edbc9..41a0341 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 );