start() makes sure that the minimum ammount of buffers requested is allocated.
stop() makes sure that buffers are actually destroyed and prevents
filling the file system when resizing the surface a lot, because the
wayland-shm-* files will stay on the file system as long as the wl_buffers
created out of them are alive.
{
g_object_unref (meta->display);
munmap (meta->data, meta->size);
+
+ GST_DEBUG ("destroying wl_buffer %p", meta->wbuffer);
wl_buffer_destroy (meta->wbuffer);
}
self->size = size;
self->used = 0;
- return TRUE;
+ return GST_BUFFER_POOL_CLASS (parent_class)->start (pool);
}
static gboolean
self->size = 0;
self->used = 0;
- return TRUE;
+ return GST_BUFFER_POOL_CLASS (parent_class)->stop (pool);
}
static GstFlowReturn