X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=mlt%2B%2B%2Fsrc%2FMltProperties.cpp;h=40d70815d54eb8eaeb67f8783ec4591d1c3253f8;hb=1a4cf7f5285d16d0530ea03c2b524be7c1aa5dbc;hp=8725d20663445f05b921b996da150d67757ed69d;hpb=9a03261fe44f2c036367b31177da50ebc47cca90;p=melted diff --git a/mlt++/src/MltProperties.cpp b/mlt++/src/MltProperties.cpp index 8725d20..40d7081 100644 --- a/mlt++/src/MltProperties.cpp +++ b/mlt++/src/MltProperties.cpp @@ -152,3 +152,19 @@ void Properties::dump( FILE *output ) { mlt_properties_dump( get_properties( ), output ); } + +int Properties::save( char *file ) +{ + int error = 0; + FILE *f = fopen( file, "w" ); + if ( f != NULL ) + { + dump( f ); + fclose( f ); + } + else + { + error = 1; + } + return error; +}