request_pad


Description:

[ CCode ( vfunc_name = "request_new_pad" ) ]
public virtual Pad? request_pad (PadTemplate templ, string? name, Caps? caps)

Retrieves a request pad from the element according to the provided template.

Pad templates can be looked up using get_static_pad_templates.

The pad should be released with release_request_pad.

Parameters:

this

a Element to find a request pad of.

templ

a PadTemplate of which we want a pad of.

name

the name of the request Pad to retrieve. Can be null.

caps

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

Returns:

requested Pad if found, otherwise null. Release after usage.