glsyncmeta: Set new sync point when copying
authorJan Schmidt <jan@centricular.com>
Tue, 2 Jun 2015 14:31:42 +0000 (00:31 +1000)
committerJan Schmidt <jan@centricular.com>
Tue, 2 Jun 2015 14:50:29 +0000 (00:50 +1000)
Set a new sync point when copying instead of
transferring the (non-refcounted) GL sync object
from the source meta.

https://bugzilla.gnome.org/show_bug.cgi?id=750279

gst-libs/gst/gl/gstglsyncmeta.c

index 820d8d2..dd195cc 100644 (file)
@@ -128,7 +128,9 @@ _gst_gl_sync_meta_transform (GstBuffer * dest, GstMeta * meta,
       GST_LOG ("copy sync object %p from meta %p to %p", smeta->glsync,
           smeta, dmeta);
 
-      dmeta->glsync = smeta->glsync;
+      /* Setting a sync point here relies on GstBuffer copying
+       * metas after data */
+      gst_gl_sync_meta_set_sync_point (dmeta, smeta->context);
     }
   }
   return TRUE;