waylandsink/waylandpool: remove useless munmap call
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Thu, 6 Mar 2014 15:03:50 +0000 (17:03 +0200)
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Tue, 17 Jun 2014 11:51:24 +0000 (13:51 +0200)
This data pointer is part of a bigger mmap'ed region,
it has not been returned from mmap itself.

ext/wayland/waylandpool.c
ext/wayland/waylandpool.h

index b497552..38e251b 100644 (file)
@@ -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,
index 5124e33..84044be 100644 (file)
@@ -43,10 +43,7 @@ struct _GstWlMeta {
   GstMeta meta;
 
   GstWlDisplay *display;
-
   struct wl_buffer *wbuffer;
-  void *data;
-  size_t size;
 };
 
 /* buffer pool */