summaryrefslogtreecommitdiff
path: root/gst/autoconvert
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2014-05-08 19:35:07 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2014-05-09 23:03:29 -0400
commit907ffc7352998c3de2010278e1c5e0c6da8573a5 (patch)
tree624c53aa9591b11691c815221902339431d53af8 /gst/autoconvert
parentb852f13a542c6a6e72701cf6a0ae39f877664ce3 (diff)
autoconvert: Process upstream getcaps
Process it like downstream getcaps
Diffstat (limited to 'gst/autoconvert')
-rw-r--r--gst/autoconvert/gstautoconvert.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gst/autoconvert/gstautoconvert.c b/gst/autoconvert/gstautoconvert.c
index 07c8b96b5..bed2476c1 100644
--- a/gst/autoconvert/gstautoconvert.c
+++ b/gst/autoconvert/gstautoconvert.c
@@ -1200,9 +1200,10 @@ gst_auto_convert_src_query (GstPad * pad, GstObject * parent, GstQuery * query)
GstElement *subelement;
if (GST_QUERY_TYPE (query) == GST_QUERY_CAPS) {
- GstCaps *caps;
+ GstCaps *filter, *caps;
- caps = gst_caps_new_any ();
+ gst_query_parse_caps (query, &filter);
+ caps = gst_auto_convert_getcaps (autoconvert, filter, GST_PAD_SRC);
gst_query_set_caps_result (query, caps);
gst_caps_unref (caps);