diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2014-05-08 19:35:07 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2014-05-09 23:03:29 -0400 |
commit | 907ffc7352998c3de2010278e1c5e0c6da8573a5 (patch) | |
tree | 624c53aa9591b11691c815221902339431d53af8 | |
parent | b852f13a542c6a6e72701cf6a0ae39f877664ce3 (diff) | |
download | gstreamer-plugins-bad-907ffc7352998c3de2010278e1c5e0c6da8573a5.tar.gz |
autoconvert: Process upstream getcaps
Process it like downstream getcaps
-rw-r--r-- | gst/autoconvert/gstautoconvert.c | 5 |
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); |