this->tractor = mlt_tractor_init( );
// The first plant will be connected to the mulitrack
- this->producer = mlt_multitrack_service( this->multitrack );
+ this->producer = MLT_MULTITRACK_SERVICE( this->multitrack );
// Connect the tractor to the multitrack
mlt_tractor_connect( this->tractor, this->producer );
this->tractor = tractor;
// The first plant will be connected to the mulitrack
- this->producer = mlt_multitrack_service( this->multitrack );
+ this->producer = MLT_MULTITRACK_SERVICE( this->multitrack );
// Connect the tractor to the multitrack
mlt_tractor_connect( this->tractor, this->producer );
mlt_service mlt_field_service( mlt_field this )
{
- return this != NULL ? mlt_tractor_service( this->tractor ) : NULL;
+ return MLT_TRACTOR_SERVICE( this->tractor );
}
/** Get the multi track.
mlt_properties mlt_field_properties( mlt_field this )
{
- return mlt_service_properties( mlt_field_service( this ) );
+ return MLT_SERVICE_PROPERTIES( mlt_field_service( this ) );
}
/** Plant a filter.
if ( result == 0 )
{
// This is now the new producer
- this->producer = mlt_filter_service( that );
+ this->producer = MLT_FILTER_SERVICE( that );
// Reconnect tractor to new producer
mlt_tractor_connect( this->tractor, this->producer );
if ( result == 0 )
{
// This is now the new producer
- this->producer = mlt_transition_service( that );
+ this->producer = MLT_TRANSITION_SERVICE( that );
// Reconnect tractor to new producer
mlt_tractor_connect( this->tractor, this->producer );