mlt_service mlt_field_service( mlt_field this )
{
- return mlt_tractor_service( this->tractor );
+ return this != NULL ? mlt_tractor_service( this->tractor ) : NULL;
}
/** Get the multi track.
mlt_multitrack mlt_field_multitrack( mlt_field this )
{
- return this->multitrack;
+ return this != NULL ? this->multitrack : NULL;
+}
+
+/** Get the tractor.
+*/
+
+mlt_tractor mlt_field_tractor( mlt_field this )
+{
+ return this != NULL ? this->tractor : NULL;
}
/** Get the properties associated to this field.
void mlt_field_close( mlt_field this )
{
- mlt_tractor_close( this->tractor );
- mlt_multitrack_close( this->multitrack );
free( this );
}