From 3941b18ca952ef389a2e0bd4fa7817f49886e2f6 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 15 Apr 2003 19:16:51 +0000 Subject: [PATCH] remove left over GST_DATA_IS_READONLY Original commit message from CVS: remove left over GST_DATA_IS_READONLY --- gst/gstbuffer.c | 4 +--- gst/gstdata.h | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/gst/gstbuffer.c b/gst/gstbuffer.c index 74de6b2..30e08ac 100644 --- a/gst/gstbuffer.c +++ b/gst/gstbuffer.c @@ -282,8 +282,7 @@ gst_buffer_create_sub (GstBuffer *parent, guint offset, guint size) /* ref the real parent */ gst_data_ref (GST_DATA (parent)); /* make sure nobody overwrites data in the parent */ - if (!GST_DATA_IS_READONLY (parent)) - GST_DATA_FLAG_SET(parent, GST_DATA_READONLY); + GST_DATA_FLAG_SET (parent, GST_DATA_READONLY); /* create the new buffer */ buffer = gst_mem_chunk_alloc0 (chunk); @@ -562,4 +561,3 @@ gst_buffer_pool_get_user_data (GstBufferPool *pool) return pool->user_data; } - diff --git a/gst/gstdata.h b/gst/gstdata.h index 71afa58..36e68db 100644 --- a/gst/gstdata.h +++ b/gst/gstdata.h @@ -53,8 +53,6 @@ typedef enum GST_DATA_FLAG_LAST = 8 } GstDataFlags; -#define GST_DATA_IS_READONLY(data) (GST_DATA_FLAG_IS_SET((data), GST_DATA_READONLY)) - /* refcount */ #define GST_DATA_REFCOUNT(data) ((GST_DATA(data))->refcount) #define GST_DATA_REFCOUNT_VALUE(data) (gst_atomic_int_read (&(GST_DATA(data))->refcount)) -- 2.7.4