From: Sebastian Dröge Date: Mon, 8 Feb 2010 07:20:44 +0000 (+0100) Subject: [MOVED FROM BAD 24/29] shapewipe: Always hold the mask mutex before signalling the... X-Git-Tag: 1.19.3~509^2~9160 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d038dc516d2ed2580ab2935ee84e144d1845da0;p=platform%2Fupstream%2Fgstreamer.git [MOVED FROM BAD 24/29] shapewipe: Always hold the mask mutex before signalling the GCond --- diff --git a/gst/shapewipe/gstshapewipe.c b/gst/shapewipe/gstshapewipe.c index 41ee168..cdee621 100644 --- a/gst/shapewipe/gstshapewipe.c +++ b/gst/shapewipe/gstshapewipe.c @@ -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;