Pad.getRange

When pad is flushing this function returns GST_FLOW_WRONG_STATE immediatly. Calls the getrange function of pad, see GstPadGetRangeFunction for a description of a getrange function. If pad has no getrange function installed (see gst_pad_set_getrange_function()) this function returns GST_FLOW_NOT_SUPPORTED. buffer's caps must either be unset or the same as what is already configured on pad. Renegotiation within a running pull-mode pipeline is not supported. This is a lowlevel function. Usualy gst_pad_pull_range() is used.

class Pad
getRange
(
ulong offset
,
uint size
,)

Parameters

offset ulong

The start offset of the buffer

size uint

The length of the buffer

buffer Buffer

a pointer to hold the GstBuffer, returns GST_FLOW_ERROR if NULL.

Return Value

a GstFlowReturn from the pad. MT safe.

Meta