]> git.sesse.net Git - mlt/commitdiff
add mlt_service_set_profile()
authorDan Dennedy <dan@dennedy.org>
Tue, 4 Sep 2012 06:11:08 +0000 (23:11 -0700)
committerDan Dennedy <dan@dennedy.org>
Tue, 4 Sep 2012 06:11:08 +0000 (23:11 -0700)
src/framework/mlt_service.c
src/framework/mlt_service.h

index 7e66451e58fde039d7149c1d4fc896a6568127a0..d40a8f3378aa90e979d7099a9441b4b2c8f2bd68 100644 (file)
@@ -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
index 6a29d59abbc18815f8c0d278ad1ce7cc21d6b27e..4a799770d7e0f7a877c9d34ff71173a2e0f627a4 100644 (file)
@@ -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 );