[MOVED FROM BAD 24/29] shapewipe: Always hold the mask mutex before signalling the...
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 8 Feb 2010 07:20:44 +0000 (08:20 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 12 Feb 2010 10:12:34 +0000 (11:12 +0100)
gst/shapewipe/gstshapewipe.c

index 41ee168..cdee621 100644 (file)
@@ -276,7 +276,9 @@ gst_shape_wipe_reset (GstShapeWipe * self)
     gst_buffer_unref (self->mask);
   self->mask = NULL;
 
+  g_mutex_lock (self->mask_mutex);
   g_cond_signal (self->mask_cond);
+  g_mutex_unlock (self->mask_mutex);
 
   self->fmt = GST_VIDEO_FORMAT_UNKNOWN;
   self->width = self->height = 0;