multiqueue: never unref queries we do not own
authorThibault Saunier <tsaunier@igalia.com>
Thu, 20 Jun 2019 03:29:24 +0000 (23:29 -0400)
committerThibault Saunier <tsaunier@igalia.com>
Thu, 20 Jun 2019 04:19:24 +0000 (00:19 -0400)
commiteaa39398cc1e92ca4191cca66cd5c7b0cbda7394
tree83f191939199c3d4197710762a1645632143e2fc
parent0257c7813b3d13081ff107070124ebc79dc7baf9
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