Commit 468dbbba authored by Wim Taymans's avatar Wim Taymans

buffer: pass the allocator as const

parent 3977991c
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment