X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2Fmlt_properties.c;fp=src%2Fframework%2Fmlt_properties.c;h=53db4764b282e413fa631bad83e806dfa9672e96;hb=8ad18633ab01f630da1f09a3efd3acc1307b46e7;hp=df2e7b4e9ef188590684aba4de00d8ab6d201458;hpb=6b6dc5d0d724e083ef7f23d1f958e2ae94f312c2;p=melted diff --git a/src/framework/mlt_properties.c b/src/framework/mlt_properties.c index df2e7b4..53db476 100644 --- a/src/framework/mlt_properties.c +++ b/src/framework/mlt_properties.c @@ -346,7 +346,16 @@ int mlt_properties_set( mlt_properties this, char *name, char *value ) mlt_property property = mlt_properties_fetch( this, name ); // Set it if not NULL - if ( property != NULL && ( value == NULL || value[ 0 ] != '@' ) ) + if ( property == NULL ) + { + fprintf( stderr, "Whoops\n" ); + } + else if ( value == NULL ) + { + error = mlt_property_set_string( property, value ); + mlt_properties_do_mirror( this, name ); + } + else if ( *value != '@' ) { error = mlt_property_set_string( property, value ); mlt_properties_do_mirror( this, name );