Consumer::~Consumer( )
{
if ( destroy )
+ {
+ stop( );
mlt_consumer_close( instance );
+ }
}
mlt_consumer Consumer::get_consumer( )
int Consumer::connect( Service &service )
{
- return mlt_consumer_connect( get_consumer( ), service.get_service( ) );
+ return connect_producer( service );
}
int Consumer::start( )
return mlt_consumer_stop( get_consumer( ) );
}
-int Consumer::is_stopped( )
+bool Consumer::is_stopped( )
{
- return mlt_consumer_is_stopped( get_consumer( ) );
+ return mlt_consumer_is_stopped( get_consumer( ) ) != 0;
}
-