if ( time == last )
break;
last = time;
- fprintf( stderr, "%d: %lld\n", i, time );
+ fprintf( stderr, "%d: %d\n", i, time );
}
}
break;
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" );
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 ++ )
// 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 );
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 );