X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=mlt%2B%2B%2Fsrc%2FMltFrame.cpp;fp=mlt%2B%2B%2Fsrc%2FMltFrame.cpp;h=59af2574990dd72ec6d02c7e11fc283e622a734f;hb=8283ca2eb4e3b523e04a46578a19a985d3b2af3c;hp=0595a68ce6864f81d37c848202c6b07bf1e63e71;hpb=62297a36f75d159e04f5f79c9356310ee9dc8255;p=melted diff --git a/mlt++/src/MltFrame.cpp b/mlt++/src/MltFrame.cpp index 0595a68..59af257 100644 --- a/mlt++/src/MltFrame.cpp +++ b/mlt++/src/MltFrame.cpp @@ -22,21 +22,19 @@ using namespace Mlt; Frame::Frame( mlt_frame frame ) : - destroy( true ), instance( frame ) { } Frame::Frame( Frame &frame ) : - destroy( false ), instance( frame.get_frame( ) ) { + inc_ref( ); } Frame::~Frame( ) { - if ( destroy ) - mlt_frame_close( instance ); + mlt_frame_close( instance ); } mlt_frame Frame::get_frame( )