mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 12:10:37 +00:00
glbasememory: fix copying GstGLAllocationParams
Fixes a GST_IS_GL_CONTEXT critical
This commit is contained in:
parent
8d34c91855
commit
37264a86e1
1 changed files with 2 additions and 4 deletions
|
@ -654,11 +654,9 @@ gst_gl_allocation_params_copy_data (GstGLAllocationParams * src,
|
||||||
GstGLAllocationParams * dest)
|
GstGLAllocationParams * dest)
|
||||||
{
|
{
|
||||||
gst_gl_allocation_params_init (dest, src->struct_size, src->alloc_flags,
|
gst_gl_allocation_params_init (dest, src->struct_size, src->alloc_flags,
|
||||||
src->copy, src->free, NULL, src->alloc_size, NULL, src->wrapped_data,
|
src->copy, src->free, src->context, src->alloc_size, NULL,
|
||||||
src->gl_handle, src->user_data, src->notify);
|
src->wrapped_data, src->gl_handle, src->user_data, src->notify);
|
||||||
|
|
||||||
if (src->context)
|
|
||||||
dest->context = gst_object_ref (src->context);
|
|
||||||
if (src->alloc_params)
|
if (src->alloc_params)
|
||||||
dest->alloc_params = gst_allocation_params_copy (src->alloc_params);
|
dest->alloc_params = gst_allocation_params_copy (src->alloc_params);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue