if ( arg != NULL )
*arg ++ = '\0';
- consumer = mlt_factory_consumer( id, arg );
+ consumer = mlt_factory_consumer( NULL, id, arg );
if ( consumer != NULL )
{
static mlt_producer locate_producer( miracle_unit unit, char *file )
{
- return mlt_factory_producer( "fezzik", file );
+ // Try to get the profile from the consumer
+ mlt_consumer consumer = mlt_properties_get_data( unit->properties, "consumer", NULL );
+ mlt_profile profile = NULL;
+
+ if ( consumer != NULL )
+ {
+ profile = mlt_service_profile( MLT_CONSUMER_SERVICE( consumer ) );
+ }
+ return mlt_factory_producer( profile, "fezzik", file );
}
/** Update the generation count.
else if ( clip >= mlt_playlist_count( playlist ) )
{
clip = mlt_playlist_count( playlist ) - 1;
- position = LONG_MAX;
+ position = INT_MAX;
}
if ( mlt_playlist_get_clip_info( playlist, &info, clip ) == 0 )