]> git.sesse.net Git - mlt/blobdiff - src/framework/mlt_properties.c
provisional framework docs and corrections
[mlt] / src / framework / mlt_properties.c
index 2664edd7df60c2b197f5177870e531c930163f76..3fea15e27103b34aaf5ae52528978f8654b84614 100644 (file)
@@ -239,6 +239,14 @@ int mlt_properties_set( mlt_properties this, char *name, char *value )
        return error;
 }
 
+/** Set or default the property.
+*/
+
+int mlt_properties_set_or_default( mlt_properties this, char *name, char *value, char *def )
+{
+       return mlt_properties_set( this, name, value == NULL ? def : value );
+}
+
 /** Get a string value by name.
 */