applemedia: iosurfacememory: remove NO_SHARE flag
authorAlessandro Decina <alessandro.d@gmail.com>
Tue, 12 Jan 2016 03:02:46 +0000 (14:02 +1100)
committerAlessandro Decina <alessandro.d@gmail.com>
Tue, 12 Jan 2016 03:05:01 +0000 (14:05 +1100)
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.

sys/applemedia/iosurfacememory.c

index 04acc51..de57bb2 100644 (file)
@@ -173,7 +173,6 @@ _io_surface_memory_new (GstGLContext * context,
       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_NO_SHARE);
 
   mem->surface = NULL;
   _io_surface_memory_set_surface (mem, surface);