remove left over GST_DATA_IS_READONLY

Original commit message from CVS:
remove left over GST_DATA_IS_READONLY
This commit is contained in:
Benjamin Otte 2003-04-15 19:16:51 +00:00
parent ef0f37e429
commit 3941b18ca9
2 changed files with 1 additions and 5 deletions

View file

@ -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;
}

View file

@ -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))