From 44a578d2a99909a4c0894774b7b4103a1ea1c027 Mon Sep 17 00:00:00 2001 From: ddennedy Date: Thu, 26 Jun 2008 05:46:29 +0000 Subject: [PATCH] MltProducer.{h,cpp}, mltpp.i: remove Producer::get_frame that is unncessary and introduced a memory leak. git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt++@1152 d19143bc-622f-0410-bfdd-b5b2a6649095 --- mlt++/src/MltProducer.cpp | 9 --------- mlt++/src/MltProducer.h | 1 - mlt++/swig/mltpp.i | 1 - 3 files changed, 0 insertions(+), 11 deletions(-) diff --git a/mlt++/src/MltProducer.cpp b/mlt++/src/MltProducer.cpp index e98e513..39a93db 100644 --- a/mlt++/src/MltProducer.cpp +++ b/mlt++/src/MltProducer.cpp @@ -190,12 +190,3 @@ void Producer::optimise( ) { mlt_producer_optimise( get_producer( ) ); } - -Frame* Producer::get_frame( int index ) -{ - mlt_frame f = NULL; - int result = get_producer()->get_frame( get_producer(), &f, index ); - if ( f ) - return new Frame( f ); - return NULL; -} diff --git a/mlt++/src/MltProducer.h b/mlt++/src/MltProducer.h index b1b8172..cf43173 100644 --- a/mlt++/src/MltProducer.h +++ b/mlt++/src/MltProducer.h @@ -68,7 +68,6 @@ namespace Mlt bool same_clip( Producer &that ); bool runs_into( Producer &that ); void optimise( ); - Frame* get_frame( int index = 0 ); }; } diff --git a/mlt++/swig/mltpp.i b/mlt++/swig/mltpp.i index 93e2ca7..f6060b7 100644 --- a/mlt++/swig/mltpp.i +++ b/mlt++/swig/mltpp.i @@ -42,7 +42,6 @@ namespace Mlt { %newobject Service::filter( int ); %newobject Producer::filter( int ); %newobject Producer::cut( int, int ); -%newobject Producer::get_frame( int ); %newobject Playlist::current( ); %newobject Playlist::clip_info( int ); %newobject Playlist::get_clip( int ); -- 1.7.4.4