AudioEncoder.finishFrame
gst.types.FlowReturn finishFrame(gst.buffer.Buffer buffer, int samples)Collects encoded data and pushes encoded data downstream. Source pad caps must be set when this is called.
If samples < 0, then best estimate is all samples provided to encoder (subclass) so far. buf may be NULL, in which case next number of samples are considered discarded, e.g. as a result of discontinuous transmission, and a discontinuity is marked.
Note that samples received in #GstAudioEncoderClass.handle_frame() may be invalidated by a call to this function.
Parameters
buffer | encoded data |
samples | number of samples (per channel) represented by encoded data |
Returns
a #GstFlowReturn that should be escalated to caller (of caller)