projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80f4716
)
buffer: ensure writable memory in memset
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Fri, 6 Jan 2012 12:32:55 +0000
(13:32 +0100)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Fri, 6 Jan 2012 12:32:55 +0000
(13:32 +0100)
gst/gstbuffer.c
patch
|
blob
|
history
diff --git
a/gst/gstbuffer.c
b/gst/gstbuffer.c
index
8aacdeb
..
cf6b144
100644
(file)
--- 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) {