From 2edb4fef54fbc8822bb46fa7fbfef0e828b7bf3c Mon Sep 17 00:00:00 2001 From: Robert Swain Date: Mon, 3 Jan 2011 11:37:05 +0100 Subject: [PATCH] miniobject, buffer: steal miniobject flag for use as MEDIA4 buffer flag This was required to add a new MEDIA4 buffer flag for indicating progressive/mixed telecine video buffers. There is no space for additional flags in GstBuffer, so steal one from GstMiniObject. https://bugzilla.gnome.org/show_bug.cgi?id=642671 --- gst/gstbuffer.h | 2 ++ gst/gstminiobject.h | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gst/gstbuffer.h b/gst/gstbuffer.h index e454d93331..ad48315c6a 100644 --- a/gst/gstbuffer.h +++ b/gst/gstbuffer.h @@ -217,12 +217,14 @@ typedef struct _GstBufferClass GstBufferClass; * @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_MEDIA3: a flag whose use is specific to the caps of the buffer. Since: 0.10.23. + * @GST_BUFFER_FLAG_MEDIA4: a flag whose use is specific to the caps of the buffer. Since: 0.10.33. * @GST_BUFFER_FLAG_LAST: additional flags can be added starting from this flag. * * A set of buffer flags used to describe properties of a #GstBuffer. */ typedef enum { GST_BUFFER_FLAG_READONLY = GST_MINI_OBJECT_FLAG_READONLY, + GST_BUFFER_FLAG_MEDIA4 = GST_MINI_OBJECT_FLAG_RESERVED1, GST_BUFFER_FLAG_PREROLL = (GST_MINI_OBJECT_FLAG_LAST << 0), GST_BUFFER_FLAG_DISCONT = (GST_MINI_OBJECT_FLAG_LAST << 1), GST_BUFFER_FLAG_IN_CAPS = (GST_MINI_OBJECT_FLAG_LAST << 2), diff --git a/gst/gstminiobject.h b/gst/gstminiobject.h index 9bb56d6dec..1005dc5442 100644 --- a/gst/gstminiobject.h +++ b/gst/gstminiobject.h @@ -105,14 +105,17 @@ typedef void (*GstMiniObjectFinalizeFunction) (GstMiniObject *obj); /** * GstMiniObjectFlags: * @GST_MINI_OBJECT_FLAG_READONLY: is the miniobject readonly or writable + * @GST_MINI_OBJECT_FLAG_RESERVED1: a flag reserved for internal use e.g. as + * GST_BUFFER_FLAG_MEDIA4. Since: 0.10.33. * @GST_MINI_OBJECT_FLAG_LAST: first flag that can be used by subclasses. * - * Flags for the padtemplate + * Flags for the mini object */ typedef enum { GST_MINI_OBJECT_FLAG_READONLY = (1<<0), + GST_MINI_OBJECT_FLAG_RESERVED1 = (1<<1), /* padding */ GST_MINI_OBJECT_FLAG_LAST = (1<<4) } GstMiniObjectFlags; -- 2.34.1