autoconvert: Process upstream getcaps

Process it like downstream getcaps
This commit is contained in:
Olivier Crête 2014-05-08 19:35:07 -04:00
parent b852f13a54
commit 907ffc7352

View file

@ -1200,9 +1200,10 @@ gst_auto_convert_src_query (GstPad * pad, GstObject * parent, GstQuery * query)
GstElement *subelement; GstElement *subelement;
if (GST_QUERY_TYPE (query) == GST_QUERY_CAPS) { 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_query_set_caps_result (query, caps);
gst_caps_unref (caps); gst_caps_unref (caps);