mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
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.
This commit is contained in:
parent
bf2232c999
commit
4b2d76873d
2 changed files with 0 additions and 6 deletions
|
@ -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,
|
||||
|
|
|
@ -43,10 +43,7 @@ struct _GstWlMeta {
|
|||
GstMeta meta;
|
||||
|
||||
GstWlDisplay *display;
|
||||
|
||||
struct wl_buffer *wbuffer;
|
||||
void *data;
|
||||
size_t size;
|
||||
};
|
||||
|
||||
/* buffer pool */
|
||||
|
|
Loading…
Reference in a new issue