mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 13:02:29 +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;
|
||||
|
||||
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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue