#include "MltProducer.h"
#include "MltFilter.h"
+#include "MltProfile.h"
using namespace Mlt;
Producer::Producer( ) :
{
}
-Producer::Producer( char *id, char *service ) :
+Producer::Producer( Profile& profile, char *id, char *service ) :
instance( NULL ),
parent_( NULL )
{
if ( id != NULL && service != NULL )
- instance = mlt_factory_producer( id, service );
+ instance = mlt_factory_producer( profile.get_profile(), id, service );
else
- instance = mlt_factory_producer( "fezzik", id != NULL ? id : service );
+ instance = mlt_factory_producer( profile.get_profile(), "fezzik", id != NULL ? id : service );
}
Producer::Producer( Service &producer ) :
bool Producer::is_cut( )
{
- return mlt_producer_is_cut( get_producer( ) );
+ return mlt_producer_is_cut( get_producer( ) ) != 0;
}
bool Producer::is_blank( )
{
- return mlt_producer_is_blank( get_producer( ) );
+ return mlt_producer_is_blank( get_producer( ) ) != 0;
}
bool Producer::same_clip( Producer &that )