* Creates a copy of the given buffer. This will make a newly allocated
* copy of the data the source buffer contains.
*
- * Returns: (transfer full): a new copy of @buf.
+ * Returns: (transfer full) (nullable): a new copy of @buf if the copy succeeded, %NULL otherwise.
*
* Since: 1.6
*/
* duration and offset end fields are also copied. If not they will be set
* to #GST_CLOCK_TIME_NONE and #GST_BUFFER_OFFSET_NONE.
*
- * Returns: (transfer full): the new #GstBuffer or %NULL if the arguments were
- * invalid.
+ * Returns: (transfer full) (nullable): the new #GstBuffer or %NULL if copying
+ * failed.
*/
GstBuffer *
gst_buffer_copy_region (GstBuffer * buffer, GstBufferCopyFlags flags,
* Check gst_buffer_copy_deep() if you want to force the data
* to be copied to newly allocated memory.
*
- * Returns: (transfer full): a new copy of @buf.
+ * Returns: (transfer full) (nullable): a new copy of @buf if the copy succeeded, %NULL otherwise.
*/
GstBuffer *
gst_buffer_copy (const GstBuffer * buf)