ignore attr which are active, but have no value
[melted] / src / framework / mlt_property.c
index f3613ce..a4bba69 100644 (file)
@@ -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 )
                {