X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=mlt%2B%2B%2Fsrc%2FMltProducer.cpp;h=4302243902f23ab4144fa26a2f779c3f1e1044f0;hb=d32f9b6ac490bed3b4712b8868db535054816931;hp=1b06e9130d39c577c7e1bf9334aac5fcbc585614;hpb=47fb1506a99bae1c9cb90f313176f9dab58d5854;p=melted diff --git a/mlt++/src/MltProducer.cpp b/mlt++/src/MltProducer.cpp index 1b06e91..4302243 100644 --- a/mlt++/src/MltProducer.cpp +++ b/mlt++/src/MltProducer.cpp @@ -20,6 +20,7 @@ #include "MltProducer.h" #include "MltFilter.h" +#include "MltProfile.h" using namespace Mlt; Producer::Producer( ) : @@ -28,14 +29,14 @@ Producer::Producer( ) : { } -Producer::Producer( char *id, char *service ) : +Producer::Producer( Profile& profile, const char *id, const 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 ) : @@ -59,6 +60,7 @@ Producer::Producer( mlt_producer producer ) : } Producer::Producer( Producer &producer ) : + Mlt::Service( producer ), instance( producer.get_producer( ) ), parent_( NULL ) {