input-selector: Let context queries pass through
authorPhilippe Normand <philn@igalia.com>
Wed, 28 Nov 2018 11:00:21 +0000 (11:00 +0000)
committerPhilippe Normand <philn@igalia.com>
Wed, 28 Nov 2018 11:00:21 +0000 (11:00 +0000)
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

index 623211efd156372f768ce57d30dc5ebc747fc268..25b4e7f61fcd707a2a7df9fa3e94f5996cabe6fc 100644 (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;