git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt++@553
d19143bc-622f-0410-bfdd-
b5b2a6649095
inc_ref( );
}
+Tractor::Tractor( char *id, char *resource ) :
+ instance( NULL )
+{
+ Producer producer( id, resource );
+ if ( producer.is_valid( ) && producer.type( ) == tractor_type )
+ {
+ instance = ( mlt_tractor )producer.get_producer( );
+ inc_ref( );
+ }
+ else if ( producer.is_valid( ) )
+ {
+ instance = mlt_tractor_new( );
+ set_track( producer, 0 );
+ }
+}
+
Tractor::~Tractor( )
{
mlt_tractor_close( instance );
Tractor( Service &tractor );
Tractor( mlt_tractor tractor );
Tractor( Tractor &tractor );
+ Tractor( char *id, char *arg = NULL );
virtual ~Tractor( );
mlt_tractor get_tractor( );
mlt_producer get_producer( );