Element.getCompatiblePad

gst.pad.Pad getCompatiblePad(gst.pad.Pad pad, gst.caps.Caps caps = null)

Looks for an unlinked pad to which the given pad can link. It is not guaranteed that linking the pads will work, though it should work in most cases.

This function will first attempt to find a compatible unlinked ALWAYS pad, and if none can be found, it will request a compatible REQUEST pad by looking at the templates of element.

Parameters

padthe #GstPad to find a compatible one for.
capsthe #GstCaps to use as a filter.

Returns

the #GstPad to which a link

can be made, or null if one cannot be found. [gst.object.ObjectWrap.unref] after usage.