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.
This commit is contained in:
Philippe Normand 2018-11-28 11:00:21 +00:00
parent 84512152c1
commit 9f5e65f0a2

View file

@ -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;