From 4b3ffbc14dd81bb947140108c35951558b66171b Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 26 Aug 2011 13:40:44 +0200 Subject: [PATCH] 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. --- gst/gstbuffer.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gst/gstbuffer.h b/gst/gstbuffer.h index f9f4c8ff43..92d40d4601 100644 --- a/gst/gstbuffer.h +++ b/gst/gstbuffer.h @@ -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),