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
@ -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…
x
Reference in New Issue
Block a user