mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
buffer: improve _set_size()
This commit is contained in:
parent
8428d3e295
commit
b15bcb66b4
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue