Commit 9e2ef19d authored by Wim Taymans's avatar Wim Taymans
Browse files

queues: warn when receiving a serialized event

.. until we implement it.
parent 2e864c47
...@@ -1518,11 +1518,14 @@ gst_multi_queue_sink_query (GstPad * pad, GstObject * parent, GstQuery * query) ...@@ -1518,11 +1518,14 @@ gst_multi_queue_sink_query (GstPad * pad, GstObject * parent, GstQuery * query)
gboolean res; gboolean res;
switch (GST_QUERY_TYPE (query)) { switch (GST_QUERY_TYPE (query)) {
case GST_QUERY_ACCEPT_CAPS:
case GST_QUERY_CAPS:
default: default:
/* default handling */ if (GST_QUERY_IS_SERIALIZED (query)) {
res = gst_pad_query_default (pad, parent, query); GST_WARNING_OBJECT (pad, "unhandled serialized query");
res = FALSE;
} else {
/* default handling */
res = gst_pad_query_default (pad, parent, query);
}
break; break;
} }
return res; return res;
......
...@@ -2181,7 +2181,12 @@ gst_queue2_handle_sink_query (GstPad * pad, GstObject * parent, ...@@ -2181,7 +2181,12 @@ gst_queue2_handle_sink_query (GstPad * pad, GstObject * parent,
switch (GST_QUERY_TYPE (query)) { switch (GST_QUERY_TYPE (query)) {
default: 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; break;
} }
return res; return res;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment