Element.requestPad

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.

class Element
requestPad

Parameters

templ gst.pad_template.PadTemplate

a #GstPadTemplate of which we want a pad of.

name string

the name of the request #GstPad to retrieve. Can be null.

caps gst.caps.Caps

the caps of the pad we want to request. Can be null.

Return Value

Type: gst.pad.Pad

requested #GstPad if found, otherwise null. Release after usage.