mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-08 15:32:32 +00:00
decodebin: Need to lock the chain mutex in autoplug_query
This commit is contained in:
parent
b86267b5be
commit
730e633d58
1 changed files with 2 additions and 0 deletions
|
@ -4239,6 +4239,7 @@ gst_decode_pad_query (GstPad * pad, GstObject * parent, GstQuery * query)
|
||||||
GstDecodePad *dpad = GST_DECODE_PAD (parent);
|
GstDecodePad *dpad = GST_DECODE_PAD (parent);
|
||||||
gboolean ret = FALSE;
|
gboolean ret = FALSE;
|
||||||
|
|
||||||
|
CHAIN_MUTEX_LOCK (dpad->chain);
|
||||||
if (!dpad->exposed && !dpad->chain->deadend) {
|
if (!dpad->exposed && !dpad->chain->deadend) {
|
||||||
ret = FALSE;
|
ret = FALSE;
|
||||||
g_signal_emit (G_OBJECT (dpad->dbin),
|
g_signal_emit (G_OBJECT (dpad->dbin),
|
||||||
|
@ -4265,6 +4266,7 @@ gst_decode_pad_query (GstPad * pad, GstObject * parent, GstQuery * query)
|
||||||
gst_object_unref (target);
|
gst_object_unref (target);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
CHAIN_MUTEX_UNLOCK (dpad->chain);
|
||||||
|
|
||||||
/* If exposed or nothing handled the query use the default handler */
|
/* If exposed or nothing handled the query use the default handler */
|
||||||
if (!ret)
|
if (!ret)
|
||||||
|
|
Loading…
Reference in a new issue