multiqueue: never unref queries we do not own
authorThibault Saunier <tsaunier@igalia.com>
Thu, 20 Jun 2019 03:29:24 +0000 (23:29 -0400)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 8 Aug 2019 13:58:52 +0000 (14:58 +0100)
commita5d22be74b9a06bedc351cba2b7071488decd262
treefac72877bc372fc04bfc1c4e8635279675080b02
parent80c5dacfb374bcef9b60b3fe48ac30e97fffc4d7
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.
plugins/elements/gstmultiqueue.c