Gst.Pad.prototype.chain
function chain(buffer:Gst.Buffer):Gst.FlowReturn { // Gjs wrapper for gst_pad_chain() }
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 preceeding 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.
- buffer
the Gst.Buffer to send, return GST_FLOW_ERROR if not.
- Returns
a Gst.FlowReturn from the pad. MT safe.