projects
/
melted
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Constructor clean up
[melted]
/
mlt++
/
src
/
MltProperties.cpp
diff --git
a/mlt++/src/MltProperties.cpp
b/mlt++/src/MltProperties.cpp
index
8725d20
..
40d7081
100644
(file)
--- 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;
+}