From ad9450e1c05d8be067e3fce354bac66403148c42 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 6 Jan 2012 13:32:55 +0100 Subject: [PATCH] buffer: ensure writable memory in memset --- gst/gstbuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {