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