From: George Kiagiadakis Date: Thu, 6 Mar 2014 15:03:50 +0000 (+0200) Subject: waylandsink/waylandpool: remove useless munmap call X-Git-Tag: 1.19.3~507^2~10844 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4b2d76873d5c21a91fa4258201072a6d255ef292;p=platform%2Fupstream%2Fgstreamer.git waylandsink/waylandpool: remove useless munmap call This data pointer is part of a bigger mmap'ed region, it has not been returned from mmap itself. --- diff --git a/ext/wayland/waylandpool.c b/ext/wayland/waylandpool.c index b497552..38e251b 100644 --- a/ext/wayland/waylandpool.c +++ b/ext/wayland/waylandpool.c @@ -56,7 +56,6 @@ static void gst_wl_meta_free (GstWlMeta * meta, GstBuffer * buffer) { g_object_unref (meta->display); - munmap (meta->data, meta->size); GST_DEBUG ("destroying wl_buffer %p", meta->wbuffer); wl_buffer_destroy (meta->wbuffer); @@ -267,8 +266,6 @@ gst_wayland_buffer_pool_alloc (GstBufferPool * pool, GstBuffer ** buffer, meta->display = g_object_ref (self->display); meta->wbuffer = wl_shm_pool_create_buffer (self->wl_pool, offset, width, height, stride, format); - meta->data = data; - meta->size = size; /* add the allocated memory on the GstBuffer */ gst_buffer_append_memory (*buffer, diff --git a/ext/wayland/waylandpool.h b/ext/wayland/waylandpool.h index 5124e33..84044be 100644 --- a/ext/wayland/waylandpool.h +++ b/ext/wayland/waylandpool.h @@ -43,10 +43,7 @@ struct _GstWlMeta { GstMeta meta; GstWlDisplay *display; - struct wl_buffer *wbuffer; - void *data; - size_t size; }; /* buffer pool */