From 20a68beb9cb18cbd9bada152afd50567f3c49e5a Mon Sep 17 00:00:00 2001 From: lilo_booter Date: Mon, 3 Jan 2005 14:29:44 +0000 Subject: [PATCH] Fetch unit from miracle server git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt++@601 d19143bc-622f-0410-bfdd-b5b2a6649095 --- mlt++/src/MltMiracle.cpp | 6 ++++++ mlt++/src/MltMiracle.h | 1 + mlt++/swig/mltpp.i | 1 + 3 files changed, 8 insertions(+), 0 deletions(-) diff --git a/mlt++/src/MltMiracle.cpp b/mlt++/src/MltMiracle.cpp index 9f6a49a..1e6d7ea 100644 --- a/mlt++/src/MltMiracle.cpp +++ b/mlt++/src/MltMiracle.cpp @@ -149,3 +149,9 @@ void Miracle::log_level( int threshold ) { miracle_log_init( log_stderr, threshold ); } + +Properties *Miracle::unit( int index ) +{ + mlt_properties properties = miracle_server_fetch_unit( server, index ); + return properties != NULL ? new Properties( properties ) : NULL; +} diff --git a/mlt++/src/MltMiracle.h b/mlt++/src/MltMiracle.h index 4b98068..0c5706f 100644 --- a/mlt++/src/MltMiracle.h +++ b/mlt++/src/MltMiracle.h @@ -50,6 +50,7 @@ namespace Mlt virtual Response *push( char *command, Service *service ); void wait_for_shutdown( ); static void log_level( int ); + Properties *unit( int ); }; } diff --git a/mlt++/swig/mltpp.i b/mlt++/swig/mltpp.i index 85bc6b5..60d842d 100644 --- a/mlt++/swig/mltpp.i +++ b/mlt++/swig/mltpp.i @@ -51,6 +51,7 @@ namespace Mlt { %newobject Frame::get_original_producer( ); %newobject Miracle::execute( char * ); %newobject Miracle::push( char *, Service & ); +%newobject Miracle::unit( int ); } /** Classes to wrap. -- 1.7.4.4