mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
buffer: allow calling _fill() with a NULL data pointer if size is 0 bytes
This commit is contained in:
parent
1319196349
commit
65c2ecb4f3
1 changed files with 1 additions and 1 deletions
|
@ -1576,7 +1576,7 @@ gst_buffer_fill (GstBuffer * buffer, gsize offset, gconstpointer src,
|
|||
|
||||
g_return_val_if_fail (GST_IS_BUFFER (buffer), 0);
|
||||
g_return_val_if_fail (gst_buffer_is_writable (buffer), 0);
|
||||
g_return_val_if_fail (src != NULL, 0);
|
||||
g_return_val_if_fail (src != NULL || size == 0, 0);
|
||||
|
||||
GST_CAT_LOG (GST_CAT_BUFFER,
|
||||
"buffer %p, offset %" G_GSIZE_FORMAT ", size %" G_GSIZE_FORMAT, buffer,
|
||||
|
|
Loading…
Reference in a new issue