MT safe.
Pad.chain
gst.types.FlowReturn chain(gst.buffer.Buffer buffer)Chain a buffer to pad.
The function returns #GST_FLOW_FLUSHING if the pad was flushing.
If the buffer type is not acceptable for pad (as negotiated with a preceding GST_EVENT_CAPS event), this function returns #GST_FLOW_NOT_NEGOTIATED.
The function proceeds calling the chain function installed on pad (see gst_pad_set_chain_function()) and the return value of that function is returned to the caller. #GST_FLOW_NOT_SUPPORTED is returned if pad has no chain function.
In all cases, success or failure, the caller loses its reference to buffer after calling this function.
Parameters
buffer | the #GstBuffer to send, return GST_FLOW_ERROR if not. |
Returns
a #GstFlowReturn from the pad.