pull_range
Description:
public FlowReturn pull_range (
uint64 offset,
uint size,
out Buffer buffer)
Pulls a buffer from the peer pad.
This function will first trigger the pad block signal if it was installed.
When pad is not linked NOT_LINKED is returned else
this function returns the result of get_range on the peer pad. See
get_range for a list of return values and for the semantics of the arguments
of this function.
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.
Parameters:
| offset |
The start offset of the buffer |
| size |
The length of the buffer |
| buffer |
a pointer to hold the Buffer, returns GST_FLOW_ERROR if null.
|
Returns:
a FlowReturn from the peer pad. When this function returns
OK, buffer will contain a valid
Buffer that should be freed with
unref after usage. buffer may not be used or freed when any
other return value than OK is returned. MT safe. |