mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
remove left over GST_DATA_IS_READONLY
Original commit message from CVS: remove left over GST_DATA_IS_READONLY
This commit is contained in:
parent
ef0f37e429
commit
3941b18ca9
2 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue