applemedia: iosurfacememory: remove NO_SHARE flag
The full memory can be safely shared. Sharing a sub region can't be done and will fail in the base allocator, triggering a copy.
This commit is contained in:
parent
f94079c1a9
commit
45b40b8467
@ -173,7 +173,6 @@ _io_surface_memory_new (GstGLContext * context,
|
|||||||
target, NULL, info, plane, valign, user_data, notify);
|
target, NULL, info, plane, valign, user_data, notify);
|
||||||
|
|
||||||
GST_MINI_OBJECT_FLAG_SET (mem, GST_MEMORY_FLAG_READONLY);
|
GST_MINI_OBJECT_FLAG_SET (mem, GST_MEMORY_FLAG_READONLY);
|
||||||
GST_MINI_OBJECT_FLAG_SET (mem, GST_MEMORY_FLAG_NO_SHARE);
|
|
||||||
|
|
||||||
mem->surface = NULL;
|
mem->surface = NULL;
|
||||||
_io_surface_memory_set_surface (mem, surface);
|
_io_surface_memory_set_surface (mem, surface);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user