BufferFlags

class BufferFlags

A set of buffer flags used to describe properties of a Buffer.

Fields

class BufferFlags
CORRUPTED

The buffer data is corrupted.

DECODE_ONLY

The buffer contains data that should be dropped because it will be clipped against the segment boundaries or because it does not contain data that should be shown to the user.

DELTA_UNIT

This unit cannot be decoded independently.

DISCONT

The buffer marks a data discontinuity in the stream. This typically occurs after a seek or a dropped buffer from a live or network source.

DROPPABLE

The buffer can be dropped without breaking the stream, for example to reduce bandwidth.

GAP

The buffer has been created to fill a gap in the stream and contains media neutral data (elements can switch to optimized code path that ignores the buffer content).

HEADER

The buffer contains header information that is needed to decode the following data.

LAST

Additional media specific flags can be added starting from this flag.

LIVE

The buffer is live data and should be discarded in the PAUSED state.

MARKER

The buffer contains a media specific marker. for video this is the end of a frame boundary, for audio this is the start of a talkspurt. for RTP packets this matches the marker flag in the RTP packet header.

NON_DROPPABLE

This buffer is important and should not be dropped.

This can be used to mark important buffers, e.g. to flag RTP packets carrying keyframes or codec setup data for RTP Forward Error Correction purposes, or to prevent still video frames from being dropped by elements due to QoS.

Added in version 1.14.

RESYNC

The buffer timestamps might have a discontinuity and this buffer is a good point to resynchronize.

SYNC_AFTER

Elements which write to disk or permanent storage should ensure the data is synced after writing the contents of this buffer.

Added in version 1.6.

TAG_MEMORY

This flag is set when memory of the buffer is added/removed