diff --git a/plugins/elements/gstmultiqueue.c b/plugins/elements/gstmultiqueue.c index 38312ad063..7028203703 100644 --- a/plugins/elements/gstmultiqueue.c +++ b/plugins/elements/gstmultiqueue.c @@ -1518,11 +1518,14 @@ gst_multi_queue_sink_query (GstPad * pad, GstObject * parent, GstQuery * query) gboolean res; switch (GST_QUERY_TYPE (query)) { - case GST_QUERY_ACCEPT_CAPS: - case GST_QUERY_CAPS: default: - /* default handling */ - res = gst_pad_query_default (pad, parent, query); + if (GST_QUERY_IS_SERIALIZED (query)) { + GST_WARNING_OBJECT (pad, "unhandled serialized query"); + res = FALSE; + } else { + /* default handling */ + res = gst_pad_query_default (pad, parent, query); + } break; } return res; diff --git a/plugins/elements/gstqueue2.c b/plugins/elements/gstqueue2.c index 11ded3da8c..1145c60788 100644 --- a/plugins/elements/gstqueue2.c +++ b/plugins/elements/gstqueue2.c @@ -2181,7 +2181,12 @@ gst_queue2_handle_sink_query (GstPad * pad, GstObject * parent, switch (GST_QUERY_TYPE (query)) { default: - res = gst_pad_query_default (pad, parent, query); + if (GST_QUERY_IS_SERIALIZED (query)) { + GST_WARNING_OBJECT (pad, "unhandled serialized query"); + res = FALSE; + } else { + res = gst_pad_query_default (pad, parent, query); + } break; } return res;