]> git.sesse.net Git - mlt/commitdiff
Add service locks around yadif context.
authorDan Dennedy <dan@dennedy.org>
Fri, 11 Jun 2010 07:14:27 +0000 (00:14 -0700)
committerDan Dennedy <dan@dennedy.org>
Mon, 24 Jan 2011 02:09:43 +0000 (18:09 -0800)
src/modules/xine/filter_deinterlace.c

index 56daea6ff9cf0b59f9601a1fc990fc2ef70ff0bd..0f820c5a0280a764610b8834035a21272a201059 100644 (file)
@@ -68,6 +68,7 @@ int deinterlace_yadif( mlt_frame frame, mlt_filter filter, uint8_t **image, mlt_
                
                        if ( !error && next_image && *format == mlt_image_yuv422 )
                        {
+                               mlt_service_lock( MLT_FILTER_SERVICE(filter) );
                                if ( !yadif->ysrc )
                                {
                                        // Create intermediate planar planes
@@ -114,6 +115,8 @@ int deinterlace_yadif( mlt_frame frame, mlt_filter filter, uint8_t **image, mlt_
                                // Convert planar to packed
                                YUY2FromPlanes( *image, pitch, *width, *height, yadif->ydest,
                                        yadif->ypitch, yadif->udest, yadif->vdest, yadif->uvpitch, yadif->cpu);
+
+                               mlt_service_unlock( MLT_FILTER_SERVICE(filter) );
                        }
                }
        }