mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-07 15:02:40 +00:00
multiqueue: never unref queries we do not own
The `query` argument of gst_pad_query is "transfer none". Query objects are "borrowed" by the pad query handlers and those should never unref them. This was leading to double freed queries in a very racy way with nested GESTimelines.
This commit is contained in:
parent
0257c7813b
commit
eaa39398cc
1 changed files with 1 additions and 1 deletions
|
@ -2049,7 +2049,7 @@ next:
|
||||||
|
|
||||||
out_flushing:
|
out_flushing:
|
||||||
{
|
{
|
||||||
if (object)
|
if (object && !GST_IS_QUERY (object))
|
||||||
gst_mini_object_unref (object);
|
gst_mini_object_unref (object);
|
||||||
|
|
||||||
GST_MULTI_QUEUE_MUTEX_LOCK (mq);
|
GST_MULTI_QUEUE_MUTEX_LOCK (mq);
|
||||||
|
|
Loading…
Reference in a new issue