buffer: pass the allocator as const

This commit is contained in:
Wim Taymans 2011-06-13 11:50:42 +02:00
parent 3977991c9d
commit 468dbbbaaf
2 changed files with 2 additions and 2 deletions

View file

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

View file

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