mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 20:42:30 +00:00
buffer: pass the allocator as const
This commit is contained in:
parent
3977991c9d
commit
468dbbbaaf
2 changed files with 2 additions and 2 deletions
|
@ -476,7 +476,7 @@ gst_buffer_new (void)
|
|||
* be allocated.
|
||||
*/
|
||||
GstBuffer *
|
||||
gst_buffer_new_allocate (GstMemoryAllocator * allocator, gsize size,
|
||||
gst_buffer_new_allocate (const GstMemoryAllocator * allocator, gsize size,
|
||||
gsize align)
|
||||
{
|
||||
GstBuffer *newbuf;
|
||||
|
|
|
@ -226,7 +226,7 @@ struct _GstBuffer {
|
|||
|
||||
/* allocation */
|
||||
GstBuffer * gst_buffer_new (void);
|
||||
GstBuffer * gst_buffer_new_allocate (GstMemoryAllocator * allocator, gsize maxsize, gsize align);
|
||||
GstBuffer * gst_buffer_new_allocate (const GstMemoryAllocator * allocator, gsize maxsize, gsize align);
|
||||
|
||||
/* memory blocks */
|
||||
guint gst_buffer_n_memory (GstBuffer *buffer);
|
||||
|
|
Loading…
Reference in a new issue