Element.requestPad

gst.pad.Pad requestPad(gst.pad_template.PadTemplate templ, string name = null, gst.caps.Caps caps = null)

Retrieves a request pad from the element according to the provided template. Pad templates can be looked up using [gst.element_factory.ElementFactory.getStaticPadTemplates].

The pad should be released with [gst.element.Element.releaseRequestPad].

Parameters

templa #GstPadTemplate of which we want a pad of.
namethe name of the request #GstPad to retrieve. Can be null.
capsthe caps of the pad we want to request. Can be null.

Returns

requested #GstPad if found,

otherwise null. Release after usage.