X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=mlt%2B%2B%2Fsrc%2FMltTransition.cpp;h=3a194e45b9568f31df52a4b1629be58026d84f52;hb=c1dda4b336a041cef7ad422a9dffc4705c7128fa;hp=e26feba1cc3de6177780f0ac1ecc490d9855bdf8;hpb=0caa0a91b0971439dfe00d0ed9bc05992b7dd609;p=melted diff --git a/mlt++/src/MltTransition.cpp b/mlt++/src/MltTransition.cpp index e26feba..3a194e4 100644 --- a/mlt++/src/MltTransition.cpp +++ b/mlt++/src/MltTransition.cpp @@ -21,14 +21,15 @@ #include #include #include "MltTransition.h" +#include "MltProfile.h" using namespace Mlt; -Transition::Transition( char *id, char *arg ) : +Transition::Transition( Profile& profile, char *id, char *arg ) : instance( NULL ) { if ( arg != NULL ) { - instance = mlt_factory_transition( id, arg ); + instance = mlt_factory_transition( profile.get_profile(), id, arg ); } else { @@ -37,12 +38,12 @@ Transition::Transition( char *id, char *arg ) : char *temp = strdup( id ); char *arg = strchr( temp, ':' ) + 1; *( arg - 1 ) = '\0'; - instance = mlt_factory_transition( temp, arg ); + instance = mlt_factory_transition( profile.get_profile(), temp, arg ); free( temp ); } else { - instance = mlt_factory_transition( id, NULL ); + instance = mlt_factory_transition( profile.get_profile(), id, NULL ); } } } @@ -58,6 +59,7 @@ Transition::Transition( Service &transition ) : } Transition::Transition( Transition &transition ) : + Mlt::Service( transition ), instance( transition.get_transition( ) ) { inc_ref( ); @@ -84,3 +86,7 @@ mlt_service Transition::get_service( ) return mlt_transition_service( get_transition( ) ); } +void Transition::set_in_and_out( int in, int out ) +{ + mlt_transition_set_in_and_out( get_transition( ), in, out ); +}