mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
deinterlace: proxy allocation query in passthrough
We can let the allocation query pass when we are operating in passthrough mode.
This commit is contained in:
parent
4efdbc97a5
commit
f59fb16f58
1 changed files with 8 additions and 1 deletions
|
@ -2494,7 +2494,8 @@ gst_deinterlace_sink_query (GstPad * pad, GstObject * parent, GstQuery * query)
|
|||
GST_LOG_OBJECT (pad, "%s query", GST_QUERY_TYPE_NAME (query));
|
||||
|
||||
switch (GST_QUERY_TYPE (query)) {
|
||||
case GST_QUERY_CAPS:{
|
||||
case GST_QUERY_CAPS:
|
||||
{
|
||||
GstCaps *filter, *caps;
|
||||
|
||||
gst_query_parse_caps (query, &filter);
|
||||
|
@ -2503,6 +2504,12 @@ gst_deinterlace_sink_query (GstPad * pad, GstObject * parent, GstQuery * query)
|
|||
res = TRUE;
|
||||
break;
|
||||
}
|
||||
case GST_QUERY_ALLOCATION:
|
||||
if (self->passthrough)
|
||||
res = gst_pad_peer_query (self->srcpad, query);
|
||||
else
|
||||
res = gst_pad_query_default (pad, parent, query);
|
||||
break;
|
||||
default:
|
||||
res = gst_pad_query_default (pad, parent, query);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue