buffer: improve _set_size()

This commit is contained in:
Wim Taymans 2012-04-03 16:51:54 +02:00
parent 8428d3e295
commit b15bcb66b4

View file

@ -323,7 +323,7 @@ void gst_buffer_resize_range (GstBuffer *buffer, guint idx, gint l
* Set the size of @b to @s. This will remove or trim the memory blocks
* in the buffer.
*/
#define gst_buffer_set_size(b,s) gst_buffer_resize ((b), 0, (s))
#define gst_buffer_set_size(b,s) gst_buffer_resize_range ((b), 0, -1, 0, (s))
gboolean gst_buffer_map_range (GstBuffer *buffer, guint idx, gint length,
GstMapInfo *info, GstMapFlags flags);