mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 14:06:23 +00:00
wpe: drop use of GSlice
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3695>
This commit is contained in:
parent
664d83de99
commit
bfc2fab9ea
1 changed files with 4 additions and 4 deletions
|
@ -748,7 +748,7 @@ struct ImageContext {
|
|||
|
||||
void WPEView::handleExportedImage(gpointer image)
|
||||
{
|
||||
ImageContext* imageContext = g_slice_new(ImageContext);
|
||||
ImageContext* imageContext = g_new (ImageContext, 1);
|
||||
imageContext->view = this;
|
||||
imageContext->image = static_cast<gpointer>(image);
|
||||
EGLImageKHR eglImage = wpe_fdo_egl_exported_image_get_egl_image(static_cast<struct wpe_fdo_egl_exported_image*>(image));
|
||||
|
@ -784,7 +784,7 @@ void WPEView::s_releaseSHMBuffer(gpointer data)
|
|||
{
|
||||
SHMBufferContext* context = static_cast<SHMBufferContext*>(data);
|
||||
context->view->releaseSHMBuffer(data);
|
||||
g_slice_free(SHMBufferContext, context);
|
||||
g_free (context);
|
||||
}
|
||||
|
||||
void WPEView::handleExportedBuffer(struct wpe_fdo_shm_exported_buffer* buffer)
|
||||
|
@ -802,7 +802,7 @@ void WPEView::handleExportedBuffer(struct wpe_fdo_shm_exported_buffer* buffer)
|
|||
gsize size = width * height * 4;
|
||||
auto* data = static_cast<uint8_t*>(wl_shm_buffer_get_data(shmBuffer));
|
||||
|
||||
SHMBufferContext* bufferContext = g_slice_new(SHMBufferContext);
|
||||
SHMBufferContext* bufferContext = g_new (SHMBufferContext, 1);
|
||||
bufferContext->view = this;
|
||||
bufferContext->buffer = buffer;
|
||||
|
||||
|
@ -850,7 +850,7 @@ void WPEView::s_releaseImage(GstEGLImage* image, gpointer data)
|
|||
{
|
||||
ImageContext* context = static_cast<ImageContext*>(data);
|
||||
context->view->releaseImage(context->image);
|
||||
g_slice_free(ImageContext, context);
|
||||
g_free (context);
|
||||
}
|
||||
|
||||
struct wpe_view_backend* WPEView::backend() const
|
||||
|
|
Loading…
Reference in a new issue