]> git.sesse.net Git - mlt/blobdiff - src/modules/frei0r/transition_frei0r.c
Add service locks for parallelism.
[mlt] / src / modules / frei0r / transition_frei0r.c
index df0226d1f028676d2ea94c2fc08e4f6fbd3f6a18..b1aaf8ba69609212041b345740f982461f052e49 100644 (file)
@@ -59,7 +59,9 @@ static int transition_get_image( mlt_frame a_frame, uint8_t **image, mlt_image_f
 
        float pos=( float )( position - in ) / ( float )( out - in + 1 );
        
+       mlt_service_lock( MLT_TRANSITION_SERVICE( transition ) );
        process_frei0r_item( transition_type, pos, properties, !invert ? a_frame : b_frame, images, width, height );
+       mlt_service_unlock( MLT_TRANSITION_SERVICE( transition ) );
        
        *width = mlt_properties_get_int( !invert ? a_props : b_props, "width" );
         *height = mlt_properties_get_int( !invert ? a_props : b_props, "height" );