From 119b875b0eac81cc83f1ff5550eac524f9e55917 Mon Sep 17 00:00:00 2001 From: Dan Dennedy Date: Mon, 3 Sep 2012 23:11:08 -0700 Subject: [PATCH] add mlt_service_set_profile() --- src/framework/mlt_service.c | 12 ++++++++++++ src/framework/mlt_service.h | 1 + 2 files changed, 13 insertions(+) diff --git a/src/framework/mlt_service.c b/src/framework/mlt_service.c index 7e66451e..d40a8f33 100644 --- a/src/framework/mlt_service.c +++ b/src/framework/mlt_service.c @@ -650,6 +650,18 @@ mlt_profile mlt_service_profile( mlt_service self ) return self? mlt_properties_get_data( MLT_SERVICE_PROPERTIES( self ), "_profile", NULL ) : NULL; } +/** Set the profile for a service. + * + * \public \memberof mlt_service_s + * \param self a service + * \param profile the profile to set onto the service + */ + +void mlt_service_set_profile( mlt_service self, mlt_profile profile ) +{ + mlt_properties_set_data( MLT_SERVICE_PROPERTIES( self ), "_profile", profile, 0, NULL, NULL ); +} + /** Destroy a service. * * \public \memberof mlt_service_s diff --git a/src/framework/mlt_service.h b/src/framework/mlt_service.h index 6a29d59a..4a799770 100644 --- a/src/framework/mlt_service.h +++ b/src/framework/mlt_service.h @@ -94,6 +94,7 @@ extern int mlt_service_detach( mlt_service self, mlt_filter filter ); extern void mlt_service_apply_filters( mlt_service self, mlt_frame frame, int index ); extern mlt_filter mlt_service_filter( mlt_service self, int index ); extern mlt_profile mlt_service_profile( mlt_service self ); +extern void mlt_service_set_profile( mlt_service self, mlt_profile profile ); extern void mlt_service_close( mlt_service self ); extern void mlt_service_cache_put( mlt_service self, const char *name, void* data, int size, mlt_destructor destructor ); -- 2.39.5