Cut management part 1
authorlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Fri, 24 Sep 2004 13:30:03 +0000 (13:30 +0000)
committerlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Fri, 24 Sep 2004 13:30:03 +0000 (13:30 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt++@441 d19143bc-622f-0410-bfdd-b5b2a6649095

mlt++/src/MltProducer.cpp
mlt++/src/MltProducer.h
mlt++/swig/mltpp.i

index 328d00c..cb1f1c4 100644 (file)
@@ -130,3 +130,11 @@ int Producer::get_playtime( )
        return mlt_producer_get_playtime( get_producer( ) );
 }
 
+Producer *Producer::cut( int in, int out )
+{
+       mlt_producer producer = mlt_producer_cut( get_producer( ), in, out );
+       Producer *result = new Producer( producer );
+       mlt_producer_close( producer );
+       return result;
+}
+
index a37a8df..59e7b14 100644 (file)
@@ -54,6 +54,7 @@ namespace Mlt
                        int get_out( );
                        int get_length( );
                        int get_playtime( );
+                       Producer *cut( int in = 0, int out = -1 );
        };
 }
 
index d663398..7793f78 100644 (file)
@@ -40,6 +40,7 @@ namespace Mlt {
 %newobject Service::get_frame( int );
 %newobject Service::filter( int );
 %newobject Producer::filter( int );
+%newobject Producer::cut( int, int );
 %newobject Playlist::current( );
 %newobject Playlist::clip_info( int );
 %newobject Multitrack::track( int );