mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 22:16:22 +00:00
shapewipe: Always hold the mask mutex before signalling the GCond
This commit is contained in:
parent
d875dce9bb
commit
364c53fd61
1 changed files with 2 additions and 0 deletions
|
@ -276,7 +276,9 @@ gst_shape_wipe_reset (GstShapeWipe * self)
|
||||||
gst_buffer_unref (self->mask);
|
gst_buffer_unref (self->mask);
|
||||||
self->mask = NULL;
|
self->mask = NULL;
|
||||||
|
|
||||||
|
g_mutex_lock (self->mask_mutex);
|
||||||
g_cond_signal (self->mask_cond);
|
g_cond_signal (self->mask_cond);
|
||||||
|
g_mutex_unlock (self->mask_mutex);
|
||||||
|
|
||||||
self->fmt = GST_VIDEO_FORMAT_UNKNOWN;
|
self->fmt = GST_VIDEO_FORMAT_UNKNOWN;
|
||||||
self->width = self->height = 0;
|
self->width = self->height = 0;
|
||||||
|
|
Loading…
Reference in a new issue