mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 21:12:26 +00:00
queues: warn when receiving a serialized event
.. until we implement it.
This commit is contained in:
parent
2e864c4722
commit
9e2ef19dc2
2 changed files with 13 additions and 5 deletions
|
@ -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,
|
||||||
|
|
||||||
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;
|
||||||
|
|
Loading…
Reference in a new issue