mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 15:27:07 +00:00
buffer: ensure writable memory in memset
This commit is contained in:
parent
80f4716a61
commit
ad9450e1c0
1 changed files with 1 additions and 1 deletions
|
@ -1198,7 +1198,7 @@ gst_buffer_memset (GstBuffer * buffer, gsize offset, guint8 val, gsize size)
|
|||
gsize ssize, toset;
|
||||
GstMemory *mem;
|
||||
|
||||
mem = GST_BUFFER_MEM_PTR (buffer, i);
|
||||
mem = _get_memory (buffer, i, TRUE);
|
||||
|
||||
data = gst_memory_map (mem, &ssize, NULL, GST_MAP_WRITE);
|
||||
if (ssize > offset) {
|
||||
|
|
Loading…
Reference in a new issue