buffer: Document that gst_buffer_copy_region() accepts -1 as size to copy until the end
authorSebastian Dröge <sebastian@centricular.com>
Thu, 29 Jan 2015 11:10:18 +0000 (12:10 +0100)
committerSebastian 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

index 3d907d6..06a55b9 100644 (file)
@@ -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.