buffer: rename _CLIP to _DROP flag

We can also use a flag to indicate that a frame should be decoded but not
displayed regardless of the the segment boundaries so we use the more generic
_DROP.
This commit is contained in:
Wim Taymans 2011-08-26 13:40:44 +02:00
parent 5c8efa9ffe
commit 4b3ffbc14d

View file

@ -161,15 +161,16 @@ typedef struct _GstBufferPool GstBufferPool;
* GstBufferFlags:
* @GST_BUFFER_FLAG_LIVE: the buffer is live data and should be discarded in
* the PAUSED state.
* @GST_BUFFER_FLAG_CLIP: the buffer contains data that should be dropped
* @GST_BUFFER_FLAG_DROP: the buffer contains data that should be dropped
* because it will be clipped against the segment
* boundaries.
* boundaries or because it does not contain data
* that should be shown to the user.
* @GST_BUFFER_FLAG_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.
* @GST_BUFFER_FLAG_RESYNC: the buffer timestamp might have a discontinuity
* and this buffer is a good point to resynchronize.
* @GST_BUFFER_FLAG_CORRUPTED: the buffer data is corrupted
* @GST_BUFFER_FLAG_CORRUPTED: the buffer data is corrupted.
* @GST_BUFFER_FLAG_MARKER: the buffer contains a media specific marker. for
* video this is typically the end of a frame boundary, for audio
* this is usually the end of a talkspurt.
@ -189,7 +190,7 @@ typedef struct _GstBufferPool GstBufferPool;
*/
typedef enum {
GST_BUFFER_FLAG_LIVE = (GST_MINI_OBJECT_FLAG_LAST << 0),
GST_BUFFER_FLAG_CLIP = (GST_MINI_OBJECT_FLAG_LAST << 1),
GST_BUFFER_FLAG_DROP = (GST_MINI_OBJECT_FLAG_LAST << 1),
GST_BUFFER_FLAG_DISCONT = (GST_MINI_OBJECT_FLAG_LAST << 2),
GST_BUFFER_FLAG_RESYNC = (GST_MINI_OBJECT_FLAG_LAST << 3),
GST_BUFFER_FLAG_CORRUPTED = (GST_MINI_OBJECT_FLAG_LAST << 4),