summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2012-09-06 13:38:52 +0200
committerWim Taymans <wim.taymans@collabora.co.uk>2012-09-06 13:38:52 +0200
commitf59fb16f58d1ff659dea6faa5a88cf2a8ee4f490 (patch)
treec331883bd8310df7aad6ddfeb784971b23988042
parent4efdbc97a54acb4f60c58308ff9d5f0619b1791c (diff)
downloadgstreamer-plugins-good-f59fb16f58d1ff659dea6faa5a88cf2a8ee4f490.tar.gz
deinterlace: proxy allocation query in passthrough
We can let the allocation query pass when we are operating in passthrough mode.
-rw-r--r--gst/deinterlace/gstdeinterlace.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gst/deinterlace/gstdeinterlace.c b/gst/deinterlace/gstdeinterlace.c
index a3bf2a6a3..1d1da4795 100644
--- a/gst/deinterlace/gstdeinterlace.c
+++ b/gst/deinterlace/gstdeinterlace.c
@@ -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;