mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
gstbuffer: Remove deprecated GST_BUFFER_* macros
data, size, mallocdata and free_func no longer exist.
This commit is contained in:
parent
f11ec40a3f
commit
d0b30f01b0
1 changed files with 0 additions and 36 deletions
|
@ -80,20 +80,6 @@ typedef struct _GstBufferPool GstBufferPool;
|
||||||
*/
|
*/
|
||||||
#define GST_BUFFER_FLAG_UNSET(buf,flag) GST_MINI_OBJECT_FLAG_UNSET (buf, flag)
|
#define GST_BUFFER_FLAG_UNSET(buf,flag) GST_MINI_OBJECT_FLAG_UNSET (buf, flag)
|
||||||
|
|
||||||
/**
|
|
||||||
* GST_BUFFER_DATA:
|
|
||||||
* @buf: a #GstBuffer.
|
|
||||||
*
|
|
||||||
* A pointer to the data element of this buffer.
|
|
||||||
*/
|
|
||||||
#define GST_BUFFER_DATA(buf) (GST_BUFFER_CAST(buf)->data)
|
|
||||||
/**
|
|
||||||
* GST_BUFFER_SIZE:
|
|
||||||
* @buf: a #GstBuffer.
|
|
||||||
*
|
|
||||||
* The size in bytes of the data in this buffer.
|
|
||||||
*/
|
|
||||||
#define GST_BUFFER_SIZE(buf) (GST_BUFFER_CAST(buf)->size)
|
|
||||||
/**
|
/**
|
||||||
* GST_BUFFER_TIMESTAMP:
|
* GST_BUFFER_TIMESTAMP:
|
||||||
* @buf: a #GstBuffer.:
|
* @buf: a #GstBuffer.:
|
||||||
|
@ -125,28 +111,6 @@ typedef struct _GstBufferPool GstBufferPool;
|
||||||
* The offset in the source file of the end of this buffer.
|
* The offset in the source file of the end of this buffer.
|
||||||
*/
|
*/
|
||||||
#define GST_BUFFER_OFFSET_END(buf) (GST_BUFFER_CAST(buf)->offset_end)
|
#define GST_BUFFER_OFFSET_END(buf) (GST_BUFFER_CAST(buf)->offset_end)
|
||||||
/**
|
|
||||||
* GST_BUFFER_MALLOCDATA:
|
|
||||||
* @buf: a #GstBuffer.
|
|
||||||
*
|
|
||||||
* A pointer to any data allocated for this buffer using g_malloc(). If this is
|
|
||||||
* non-NULL, this memory will be freed at the end of the buffer's lifecycle
|
|
||||||
* (i.e. when its refcount becomes zero).
|
|
||||||
*/
|
|
||||||
#define GST_BUFFER_MALLOCDATA(buf) (GST_BUFFER_CAST(buf)->malloc_data)
|
|
||||||
/**
|
|
||||||
* GST_BUFFER_FREE_FUNC:
|
|
||||||
* @buf: a #GstBuffer.
|
|
||||||
*
|
|
||||||
* A pointer to a function that will be called on the buffer's malloc_data when
|
|
||||||
* this buffer is finalized. Defaults to g_free().
|
|
||||||
*
|
|
||||||
* Note that the free function only affects the buffer's malloc_data; if the
|
|
||||||
* buffer's malloc_data is %NULL, the function will not be called.
|
|
||||||
*
|
|
||||||
* Since: 0.10.22
|
|
||||||
*/
|
|
||||||
#define GST_BUFFER_FREE_FUNC(buf) (GST_BUFFER_CAST(buf)->free_func)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GST_BUFFER_OFFSET_NONE:
|
* GST_BUFFER_OFFSET_NONE:
|
||||||
|
|
Loading…
Reference in a new issue