projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3756af
)
buffer: Document that gst_buffer_copy_region() accepts -1 as size to copy until the end
author
Sebastian Dröge
<sebastian@centricular.com>
Thu, 29 Jan 2015 11:10:18 +0000
(12:10 +0100)
committer
Sebastian Dröge
<sebastian@centricular.com>
Thu, 29 Jan 2015 11:10:49 +0000
(12:10 +0100)
It's just a wrapper around gst_buffer_copy_into() after all.
gst/gstbuffer.c
patch
|
blob
|
history
diff --git
a/gst/gstbuffer.c
b/gst/gstbuffer.c
index
3d907d6
..
06a55b9
100644
(file)
--- a/
gst/gstbuffer.c
+++ b/
gst/gstbuffer.c
@@
-1833,7
+1833,8
@@
gst_buffer_memset (GstBuffer * buffer, gsize offset, guint8 val, gsize size)
* @flags: the #GstBufferCopyFlags
* @offset: the offset into parent #GstBuffer at which the new sub-buffer
* begins.
- * @size: the size of the new #GstBuffer sub-buffer, in bytes.
+ * @size: the size of the new #GstBuffer sub-buffer, in bytes. If -1, all
+ * data is copied.
*
* Creates a sub-buffer from @parent at @offset and @size.
* This sub-buffer uses the actual memory space of the parent buffer.