From 9e2ef19dc21bf0feec7f0ac48b73f9bfae0f9e49 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 14 Mar 2012 15:42:47 +0100 Subject: [PATCH] queues: warn when receiving a serialized event .. until we implement it. --- plugins/elements/gstmultiqueue.c | 11 +++++++---- plugins/elements/gstqueue2.c | 7 ++++++- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/plugins/elements/gstmultiqueue.c b/plugins/elements/gstmultiqueue.c index 38312ad..7028203 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 11ded3d..1145c60 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; -- 2.7.4