From: lilo_booter Date: Thu, 8 Jul 2004 11:37:54 +0000 (+0000) Subject: Swig mods X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=96158c4afbd16cf1a488f1cabdb57e668374dc27;p=mlt Swig mods git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@336 d19143bc-622f-0410-bfdd-b5b2a6649095 --- diff --git a/src/framework/mlt_consumer.c b/src/framework/mlt_consumer.c index edea67ea..cfdc4ac9 100644 --- a/src/framework/mlt_consumer.c +++ b/src/framework/mlt_consumer.c @@ -156,9 +156,6 @@ int mlt_consumer_start( mlt_consumer this ) mlt_properties_set_data( properties, "test_card_producer", producer, 0, ( mlt_destructor )mlt_producer_close, NULL ); } - // Check and run an ante command - if ( mlt_properties_get( properties, "ante" ) ) - system( mlt_properties_get( properties, "ante" ) ); } } else @@ -167,6 +164,10 @@ int mlt_consumer_start( mlt_consumer this ) mlt_properties_set_data( properties, "test_card_producer", NULL, 0, NULL, NULL ); } + // Check and run an ante command + if ( mlt_properties_get( properties, "ante" ) ) + system( mlt_properties_get( properties, "ante" ) ); + // Set the real_time preference this->real_time = mlt_properties_get_int( properties, "real_time" ); diff --git a/src/framework/mlt_service.c b/src/framework/mlt_service.c index 3ebf0ad8..dcd0742f 100644 --- a/src/framework/mlt_service.c +++ b/src/framework/mlt_service.c @@ -188,6 +188,14 @@ static int service_get_frame( mlt_service this, mlt_frame_ptr frame, int index ) return 0; } +/** Return the properties object. +*/ + +mlt_properties mlt_service_properties( mlt_service self ) +{ + return &self->parent; +} + /** Obtain a frame. */ diff --git a/src/framework/mlt_service.h b/src/framework/mlt_service.h index df62b43b..98ef43a7 100644 --- a/src/framework/mlt_service.h +++ b/src/framework/mlt_service.h @@ -45,18 +45,11 @@ struct mlt_service_s extern int mlt_service_init( mlt_service self, void *child ); extern int mlt_service_connect_producer( mlt_service self, mlt_service producer, int index ); extern int mlt_service_get_frame( mlt_service self, mlt_frame_ptr frame, int index ); +extern mlt_properties mlt_service_properties( mlt_service self ); extern void mlt_service_close( mlt_service self ); // I'm not sure about self one - leaving it out of docs for now (only used in consumer_westley) extern mlt_service mlt_service_get_producer( mlt_service self ); -/** Return the properties object. -*/ - -static inline mlt_properties mlt_service_properties( mlt_service self ) -{ - return &self->parent; -} - #endif diff --git a/src/modules/xine/Makefile b/src/modules/xine/Makefile index 67b441c8..572ba4c0 100644 --- a/src/modules/xine/Makefile +++ b/src/modules/xine/Makefile @@ -9,6 +9,8 @@ OBJS = factory.o \ CFLAGS += -I../../ -DARCH_X86 +LDFLAGS+=-L../../framework -lmlt + SRCS := $(OBJS:.o=.c) all: $(TARGET)