glsyncmeta: Set new sync point when copying

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
This commit is contained in:
Jan Schmidt 2015-06-03 00:31:42 +10:00 committed by Tim-Philipp Müller
parent 7a288b0189
commit f6a102c3e5

View 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;