mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 11:55:39 +00:00
autoconvert: Handle caps query on internal srcpad
Reply with ANY caps to ensure linking the internal src pad. This might need more attention later, to reply with the real upstream caps for the currently active element.
This commit is contained in:
parent
f2d0c6a89e
commit
a303375a3f
1 changed files with 10 additions and 0 deletions
|
@ -1319,5 +1319,15 @@ gst_auto_convert_internal_src_query (GstPad * pad, GstObject * parent,
|
|||
GST_AUTO_CONVERT (g_object_get_qdata (G_OBJECT (pad),
|
||||
parent_quark));
|
||||
|
||||
if (GST_QUERY_TYPE (query) == GST_QUERY_CAPS) {
|
||||
GstCaps *caps;
|
||||
|
||||
caps = gst_caps_new_any ();
|
||||
gst_query_set_caps_result (query, caps);
|
||||
gst_caps_unref (caps);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return gst_pad_peer_query (autoconvert->sinkpad, query);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue