]> git.sesse.net Git - mlt/commitdiff
Fix bug passing serializable data property (SF-202).
authorDan Dennedy <dan@dennedy.org>
Sat, 21 Dec 2013 19:15:55 +0000 (11:15 -0800)
committerDan Dennedy <dan@dennedy.org>
Sat, 21 Dec 2013 19:15:55 +0000 (11:15 -0800)
Patch by Jakub Ksiezniak.

src/framework/mlt_property.c

index 8339c81bb6c52dfa287df67d0fa5893a28195393..64e059243a4a8d1d1c7c95dd271cf6ba8d2eea8f 100644 (file)
@@ -774,10 +774,10 @@ void mlt_property_pass( mlt_property self, mlt_property that )
                self->destructor = free;
                self->serialiser = that->serialiser;
        }
-       else if ( self->types & mlt_prop_data && self->serialiser != NULL )
+       else if ( self->types & mlt_prop_data && that->serialiser != NULL )
        {
                self->types = mlt_prop_string;
-               self->prop_string = self->serialiser( self->data, self->length );
+               self->prop_string = that->serialiser( that->data, that->length );
        }
        pthread_mutex_unlock( &self->mutex );
 }