finish_frame


Description:

public FlowReturn finish_frame (owned 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 handle_frame may be invalidated by a call to this function.

Parameters:

this

a Encoder

buffer

encoded data

samples

number of samples (per channel) represented by encoded data

Returns:

a FlowReturn that should be escalated to caller (of caller)