mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
buffer: rename PREROLL -> LIVE flag
Rename the GST_BUFFER_FLAG_PREROLL to GST_BUFFER_FLAG_LIVE and give the new flag a meaning. The old PREROLL flag never had a clear meaning.
This commit is contained in:
parent
d22192474a
commit
8698a8c94e
4 changed files with 17 additions and 16 deletions
|
@ -273,7 +273,7 @@ gst_buffer_copy_into (GstBuffer * dest, GstBuffer * src,
|
||||||
guint mask;
|
guint mask;
|
||||||
|
|
||||||
/* copy relevant flags */
|
/* copy relevant flags */
|
||||||
mask = GST_BUFFER_FLAG_PREROLL | GST_BUFFER_FLAG_IN_CAPS |
|
mask = GST_BUFFER_FLAG_LIVE | GST_BUFFER_FLAG_IN_CAPS |
|
||||||
GST_BUFFER_FLAG_DELTA_UNIT | GST_BUFFER_FLAG_DISCONT |
|
GST_BUFFER_FLAG_DELTA_UNIT | GST_BUFFER_FLAG_DISCONT |
|
||||||
GST_BUFFER_FLAG_GAP | GST_BUFFER_FLAG_MEDIA1 |
|
GST_BUFFER_FLAG_GAP | GST_BUFFER_FLAG_MEDIA1 |
|
||||||
GST_BUFFER_FLAG_MEDIA2 | GST_BUFFER_FLAG_MEDIA3;
|
GST_BUFFER_FLAG_MEDIA2 | GST_BUFFER_FLAG_MEDIA3;
|
||||||
|
|
|
@ -159,15 +159,16 @@ typedef struct _GstBufferPool GstBufferPool;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GstBufferFlag:
|
* GstBufferFlag:
|
||||||
* @GST_BUFFER_FLAG_PREROLL: the buffer is part of a preroll and should not be
|
* @GST_BUFFER_FLAG_LIVE: the buffer is live data and should be discarded in
|
||||||
* displayed.
|
* the PAUSED state.
|
||||||
* @GST_BUFFER_FLAG_DISCONT: the buffer marks a discontinuity in the stream.
|
* @GST_BUFFER_FLAG_DISCONT: the buffer marks a discontinuity in the stream.
|
||||||
* This typically occurs after a seek or a dropped buffer from a live or
|
* This typically occurs after a seek or a dropped buffer
|
||||||
* network source.
|
* from a live or network source.
|
||||||
* @GST_BUFFER_FLAG_IN_CAPS: the buffer has been added as a field in a #GstCaps.
|
* @GST_BUFFER_FLAG_IN_CAPS: the buffer has been added as a field in a #GstCaps.
|
||||||
* @GST_BUFFER_FLAG_GAP: the buffer has been created to fill a gap in the
|
* @GST_BUFFER_FLAG_GAP: the buffer has been created to fill a gap in the
|
||||||
* stream and contains media neutral data (elements can switch to optimized code
|
* stream and contains media neutral data (elements can
|
||||||
* path that ignores the buffer content).
|
* switch to optimized code path that ignores the buffer
|
||||||
|
* content).
|
||||||
* @GST_BUFFER_FLAG_DELTA_UNIT: this unit cannot be decoded independently.
|
* @GST_BUFFER_FLAG_DELTA_UNIT: this unit cannot be decoded independently.
|
||||||
* @GST_BUFFER_FLAG_MEDIA1: a flag whose use is specific to the caps of the buffer. Since: 0.10.23.
|
* @GST_BUFFER_FLAG_MEDIA1: a flag whose use is specific to the caps of the buffer. Since: 0.10.23.
|
||||||
* @GST_BUFFER_FLAG_MEDIA2: a flag whose use is specific to the caps of the buffer. Since: 0.10.23.
|
* @GST_BUFFER_FLAG_MEDIA2: a flag whose use is specific to the caps of the buffer. Since: 0.10.23.
|
||||||
|
@ -178,7 +179,7 @@ typedef struct _GstBufferPool GstBufferPool;
|
||||||
* A set of buffer flags used to describe properties of a #GstBuffer.
|
* A set of buffer flags used to describe properties of a #GstBuffer.
|
||||||
*/
|
*/
|
||||||
typedef enum {
|
typedef enum {
|
||||||
GST_BUFFER_FLAG_PREROLL = (GST_MINI_OBJECT_FLAG_LAST << 0),
|
GST_BUFFER_FLAG_LIVE = (GST_MINI_OBJECT_FLAG_LAST << 0),
|
||||||
GST_BUFFER_FLAG_DISCONT = (GST_MINI_OBJECT_FLAG_LAST << 1),
|
GST_BUFFER_FLAG_DISCONT = (GST_MINI_OBJECT_FLAG_LAST << 1),
|
||||||
GST_BUFFER_FLAG_IN_CAPS = (GST_MINI_OBJECT_FLAG_LAST << 2),
|
GST_BUFFER_FLAG_IN_CAPS = (GST_MINI_OBJECT_FLAG_LAST << 2),
|
||||||
GST_BUFFER_FLAG_GAP = (GST_MINI_OBJECT_FLAG_LAST << 3),
|
GST_BUFFER_FLAG_GAP = (GST_MINI_OBJECT_FLAG_LAST << 3),
|
||||||
|
|
|
@ -1464,7 +1464,7 @@ default_copy_metadata (GstBaseTransform * trans,
|
||||||
priv = trans->priv;
|
priv = trans->priv;
|
||||||
|
|
||||||
/* now copy the metadata */
|
/* now copy the metadata */
|
||||||
mask = GST_BUFFER_FLAG_PREROLL | GST_BUFFER_FLAG_IN_CAPS |
|
mask = GST_BUFFER_FLAG_LIVE | GST_BUFFER_FLAG_IN_CAPS |
|
||||||
GST_BUFFER_FLAG_DELTA_UNIT | GST_BUFFER_FLAG_DISCONT |
|
GST_BUFFER_FLAG_DELTA_UNIT | GST_BUFFER_FLAG_DISCONT |
|
||||||
GST_BUFFER_FLAG_GAP | GST_BUFFER_FLAG_MEDIA1 |
|
GST_BUFFER_FLAG_GAP | GST_BUFFER_FLAG_MEDIA1 |
|
||||||
GST_BUFFER_FLAG_MEDIA2 | GST_BUFFER_FLAG_MEDIA3;
|
GST_BUFFER_FLAG_MEDIA2 | GST_BUFFER_FLAG_MEDIA3;
|
||||||
|
|
|
@ -155,7 +155,7 @@ gst_dp_header_from_buffer_any (const GstBuffer * buffer, GstDPHeaderFlag flags,
|
||||||
|
|
||||||
/* data flags; eats two bytes from the ABI area */
|
/* data flags; eats two bytes from the ABI area */
|
||||||
/* we copy everything but the read-only flags */
|
/* we copy everything but the read-only flags */
|
||||||
flags_mask = GST_BUFFER_FLAG_PREROLL | GST_BUFFER_FLAG_DISCONT |
|
flags_mask = GST_BUFFER_FLAG_LIVE | GST_BUFFER_FLAG_DISCONT |
|
||||||
GST_BUFFER_FLAG_IN_CAPS | GST_BUFFER_FLAG_GAP |
|
GST_BUFFER_FLAG_IN_CAPS | GST_BUFFER_FLAG_GAP |
|
||||||
GST_BUFFER_FLAG_DELTA_UNIT;
|
GST_BUFFER_FLAG_DELTA_UNIT;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue