diff --git a/gst/gstbuffer.c b/gst/gstbuffer.c index 8aacdeb291..cf6b1442a4 100644 --- a/gst/gstbuffer.c +++ b/gst/gstbuffer.c @@ -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) {