AppSrc.pushSample

Extract a buffer from the provided sample and adds it to the queue of buffers that the appsrc element will push to its source pad. Any previous caps that were set on appsrc will be replaced by the caps associated with the sample if not equal.

This function does not take ownership of the sample so the sample needs to be unreffed after calling this function.

When the block property is TRUE, this function can block until free space becomes available in the queue.

class AppSrc
pushSample

Parameters

sample Sample

a gstreamer.Sample from which buffer and caps may be extracted

Return Value

GST_FLOW_OK when the buffer was successfuly queued. GST_FLOW_FLUSHING when appsrc is not PAUSED or PLAYING. GST_FLOW_EOS when EOS occured.

Meta