mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 05:28:48 +00:00
applemedia: iosurfacememory: alloc with g_new0
...since the base class doesn't use g_slice anymore
This commit is contained in:
parent
88f509a710
commit
ed7df2da3c
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ _io_surface_memory_new (GstGLContext * context,
|
|||
|
||||
g_return_val_if_fail (target == GST_GL_TEXTURE_TARGET_RECTANGLE, NULL);
|
||||
|
||||
mem = g_slice_new0 (GstIOSurfaceMemory);
|
||||
mem = g_new0 (GstIOSurfaceMemory, 1);
|
||||
gst_gl_memory_init (&mem->gl_mem, _io_surface_memory_allocator, NULL, context,
|
||||
target, NULL, info, plane, valign, user_data, notify);
|
||||
|
||||
|
|
Loading…
Reference in a new issue