]> git.sesse.net Git - mlt/commitdiff
Fix mixer tractor missing profile reference.
authorDan Dennedy <dan@dennedy.org>
Thu, 12 Dec 2013 07:16:21 +0000 (23:16 -0800)
committerDan Dennedy <dan@dennedy.org>
Thu, 19 Dec 2013 05:19:04 +0000 (21:19 -0800)
This resulted in unserialized time values when using xml consumer.

src/framework/mlt_playlist.c

index 1d2851ec73989d94460e1a44ee503f62c1b250cb..f3dd72ceaf21652a50b0f8592504398585cb6b37 100644 (file)
@@ -1169,6 +1169,11 @@ int mlt_playlist_mix( mlt_playlist self, int clip, int length, mlt_transition tr
                mlt_producer track_a = NULL;
                mlt_producer track_b = NULL;
                mlt_tractor tractor = mlt_tractor_new( );
+
+               mlt_service_set_profile( MLT_TRACTOR_SERVICE( tractor ),
+                       mlt_service_profile( MLT_PLAYLIST_SERVICE( self ) ) );
+               mlt_properties_set_lcnumeric( MLT_TRACTOR_PROPERTIES( tractor ),
+                       mlt_properties_get_lcnumeric( MLT_PLAYLIST_PROPERTIES( self ) ) );
                mlt_events_block( MLT_PLAYLIST_PROPERTIES( self ), self );
 
                // Check length is valid for both clips and resize if necessary.