X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2Fmlt_property.c;h=a4bba69a17b38d13d60300820ebe684f077a3ae5;hb=6ef43eabaeccc6d9d4c4cb0c222f280d57c62f2b;hp=f3613ce20cca713908d71e0133102bdbf55783b9;hpb=23c2a612605501afef9f5c9029145958e6c7fbd8;p=melted diff --git a/src/framework/mlt_property.c b/src/framework/mlt_property.c index f3613ce..a4bba69 100644 --- a/src/framework/mlt_property.c +++ b/src/framework/mlt_property.c @@ -116,7 +116,7 @@ int mlt_property_set_string( mlt_property this, char *value ) this->types = mlt_prop_string; if ( value != NULL ) this->prop_string = strdup( value ); - return this->prop_string != NULL; + return this->prop_string == NULL; } /** Set an int64 on this property. @@ -236,7 +236,7 @@ char *mlt_property_get_string( mlt_property this ) { this->types |= mlt_prop_string; this->prop_string = malloc( 32 ); - sprintf( this->prop_string, "%e", this->prop_double ); + sprintf( this->prop_string, "%f", this->prop_double ); } else if ( this->types & mlt_prop_position ) {