static void producer_close( mlt_producer this );
/** Constructor for the tractor.
-
- TODO: thread this service...
*/
mlt_tractor mlt_tractor_init( )
mlt_properties_set_data( properties, "image", *buffer, *width * *height * 2, NULL, NULL );
mlt_properties_set_int( properties, "width", *width );
mlt_properties_set_int( properties, "height", *height );
- mlt_properties_inherit( properties, mlt_frame_properties( frame ) );
return 0;
}
{
mlt_properties properties = mlt_frame_properties( this );
mlt_frame frame = mlt_frame_pop_audio( this );
+ mlt_properties_inherit( mlt_frame_properties( frame ), properties );
mlt_frame_get_audio( frame, buffer, format, frequency, channels, samples );
mlt_properties_set_data( properties, "audio", *buffer, 0, NULL, NULL );
mlt_properties_set_int( properties, "frequency", *frequency );
mlt_properties_set_data( frame_properties, label, temp, 0, ( mlt_destructor )mlt_frame_close, NULL );
// Pick up first video and audio frames
- if ( audio == NULL && !mlt_frame_is_test_audio( temp ) )
+ if ( !done && !mlt_frame_is_test_audio( temp ) && !( mlt_properties_get_int( mlt_frame_properties( temp ), "hide" ) & 2 ) )
audio = temp;
- if ( video == NULL && !mlt_frame_is_test_card( temp ) )
+ if ( !done && !mlt_frame_is_test_card( temp ) && !( mlt_properties_get_int( mlt_frame_properties( temp ), "hide" ) & 1 ) )
video = temp;
}
mlt_properties_inherit( mlt_frame_properties( *frame ), mlt_frame_properties( video ) );
}
+ mlt_properties_set_int( mlt_frame_properties( *frame ), "test_audio", audio == NULL );
+ mlt_properties_set_int( mlt_frame_properties( *frame ), "test_image", video == NULL );
}
else if ( producer != NULL )
{