From 9f5e65f0a2c26e407faa62dc47a623cb145347b6 Mon Sep 17 00:00:00 2001 From: Philippe Normand Date: Wed, 28 Nov 2018 11:00:21 +0000 Subject: [PATCH] input-selector: Let context queries pass through By doing so GL source elements can successfully reuse the GL context and display of downstream elements. This change fixes an issue in playbin when using gltestsrc where the context query made by the source element would fail and the source element would create a second (useless) GLDisplay. --- plugins/elements/gstinputselector.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/elements/gstinputselector.c b/plugins/elements/gstinputselector.c index 623211e..25b4e7f 100644 --- a/plugins/elements/gstinputselector.c +++ b/plugins/elements/gstinputselector.c @@ -666,7 +666,8 @@ gst_selector_pad_query (GstPad * pad, GstObject * parent, GstQuery * query) case GST_QUERY_CAPS: case GST_QUERY_POSITION: case GST_QUERY_DURATION: - /* always proxy caps/position/duration query, regardless of active pad or not + case GST_QUERY_CONTEXT: + /* always proxy caps/position/duration/context queries, regardless of active pad or not * See https://bugzilla.gnome.org/show_bug.cgi?id=775445 */ res = gst_pad_peer_query (self->srcpad, query); break; -- 2.7.4