]> git.sesse.net Git - mlt/blobdiff - src/framework/mlt_service.c
Merge pull request #11 from gmarco/changes
[mlt] / src / framework / mlt_service.c
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