multiqueue: Do not unref the query we get in pad->query

We do not own any ref to queries when running them.

If we end up processing the query from the streaming thread, it means that it was
a serialized query, and the query is being waited to be processed on the sinkpad
streaming thread, thread which owns the reference.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7767>
This commit is contained in:
Thibault Saunier 2024-10-28 10:41:08 -03:00 committed by GStreamer Marge Bot
parent 0942dc57dd
commit cbf204e4ae

View file

@ -2078,7 +2078,6 @@ gst_single_queue_push_one (GstMultiQueue * mq, GstSingleQueue * sq,
if (G_UNLIKELY (*allow_drop)) {
GST_DEBUG_ID (sq->debug_id, "Dropping EOS query %p", query);
gst_query_unref (query);
res = FALSE;
} else {
res = gst_pad_peer_query (srcpad, query);