gesdemux: Fix querying if we need stack reloading
authorThibault Saunier <tsaunier@igalia.com>
Tue, 20 Aug 2019 19:29:12 +0000 (15:29 -0400)
committerThibault Saunier <tsaunier@igalia.com>
Tue, 20 Aug 2019 19:29:57 +0000 (15:29 -0400)
We are probing upstream queries, not downstream ones

This was clearly a small test that slipt into previous commit

plugins/ges/gesdemux.c

index a5bcdcab4e23d029b22dc790ddee207f2b10bdce..3d900f2918088a9e2b106361047721e7e75a5801 100644 (file)
@@ -271,7 +271,7 @@ ges_demux_src_probe (GstPad * pad, GstPadProbeInfo * info, GstElement * parent)
   GESDemux *self = GES_DEMUX (parent);
   GstEvent *event;
 
-  if (info->type & (GST_PAD_PROBE_TYPE_QUERY_DOWNSTREAM)) {
+  if (info->type & (GST_PAD_PROBE_TYPE_QUERY_UPSTREAM)) {
     GstQuery *query = info->data;
 
     if (GST_QUERY_TYPE (query) == GST_QUERY_CUSTOM) {