request_pad_simple


Description:

[ Version ( since = "1.20" ) ]
public Pad? request_pad_simple (string name)

Retrieves a pad from the element by name (e.g. "src_\%d").

This version only retrieves request pads. The pad should be released with release_request_pad.

This method is slower than manually getting the pad template and calling request_pad if the pads should have a specific name (e.g. name is "src_1" instead of "src_\%u").

Note that this function was introduced in GStreamer 1.20 in order to provide a better name to get_request_pad. Prior to 1.20, users should use get_request_pad which provides the same functionality.

Parameters:

this

a Element to find a request pad of.

name

the name of the request Pad to retrieve.

Returns:

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