gstbuffer: add GST_BUFFER_FLAG_NON_DROPPABLE

This can be used to identify buffers for which a higher percentage
of redundancy should be allocated when performing forward error
correction, or to prevent still video frames from being dropped by
elements due to QoS.

https://bugzilla.gnome.org/show_bug.cgi?id=793008
This commit is contained in:
Mathieu Duponchelle 2018-01-30 16:41:39 +01:00
parent e1fdb5bf03
commit ebcdfd2e9c

View file

@ -212,6 +212,11 @@ typedef struct _GstBufferPool GstBufferPool;
* writing the contents of this buffer. (Since 1.6)
* @GST_BUFFER_FLAG_LAST: additional media specific flags can be added starting from
* this flag.
* @GST_BUFFER_FLAG_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. (Since 1.14)
*
* A set of buffer flags used to describe properties of a #GstBuffer.
*/
@ -228,6 +233,7 @@ typedef enum {
GST_BUFFER_FLAG_DELTA_UNIT = (GST_MINI_OBJECT_FLAG_LAST << 9),
GST_BUFFER_FLAG_TAG_MEMORY = (GST_MINI_OBJECT_FLAG_LAST << 10),
GST_BUFFER_FLAG_SYNC_AFTER = (GST_MINI_OBJECT_FLAG_LAST << 11),
GST_BUFFER_FLAG_NON_DROPPABLE = (GST_MINI_OBJECT_FLAG_LAST << 12),
GST_BUFFER_FLAG_LAST = (GST_MINI_OBJECT_FLAG_LAST << 16)
} GstBufferFlags;