push_sample
Description:
[ HasEmitter ]
[ Version ( since = "1.6" ) ]
public virtual signal FlowReturn push_sample (Sample sample)
[ Version ( since = "1.6" ) ]
public virtual signal FlowReturn push_sample (Sample sample)
Extract a buffer from the provided sample and adds the extracted buffer to the queue of buffers that the appsrc element will push to its source pad.
This function set the appsrc caps based on the caps in the sample and reset the caps if they change. Only the caps and the buffer of the provided sample are used and not for example the segment in the sample.
This function does not take ownership of the sample, but it takes a reference so the sample can be unreffed at any time 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 sample from which extract buffer to push |