mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
autoconvert: Process upstream getcaps
Process it like downstream getcaps
This commit is contained in:
parent
b852f13a54
commit
907ffc7352
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue