static void producer_close( mlt_producer this );
/** Constructor for the tractor.
-
- TODO: thread this service...
*/
mlt_tractor mlt_tractor_init( )
mlt_producer mlt_tractor_producer( mlt_tractor this )
{
- return &this->parent;
+ return this != NULL ? &this->parent : NULL;
}
/** Get the properties object associated to the tractor.
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_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 )
{