#GST_FLOW_FLUSHING when appsrc is not PAUSED or PLAYING. #GST_FLOW_EOS when EOS occurred.
AppSrc.pushSample
gst.types.FlowReturn pushSample(gst.sample.Sample sample)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.
Parameters
sample | a #GstSample from which buffer and caps may be extracted |
Returns
#GST_FLOW_OK when the buffer was successfully queued.