Commit 0171c988 authored by luyikei's avatar luyikei

MLTTransition: Add a convenient constructor

parent 1ea522ad
......@@ -28,6 +28,7 @@
#include <mlt++/MltTransition.h>
#include "MLTProfile.h"
#include "MLTBackend.h"
using namespace Backend::MLT;
......@@ -39,6 +40,12 @@ MLTTransition::MLTTransition( Backend::IProfile& profile, const char *id )
throw InvalidServiceException();
}
MLTTransition::MLTTransition( const char* id )
: MLTTransition( Backend::instance()->profile(), id )
{
}
MLTTransition::~MLTTransition()
{
delete m_transition;
......
......@@ -40,6 +40,7 @@ namespace MLT
{
public:
MLTTransition( IProfile& profile, const char* id );
MLTTransition( const char* id );
virtual ~MLTTransition() override;
virtual Mlt::Transition* transition();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment