glupload: Add VideoMetas and GLSyncMeta to the raw uploaded buffers
authorThibault Saunier <tsaunier@igalia.com>
Fri, 27 Sep 2019 14:10:43 +0000 (11:10 -0300)
committerThibault Saunier <tsaunier@gnome.org>
Wed, 2 Oct 2019 19:27:39 +0000 (19:27 +0000)
commit8d32de090554cf29fe359f83aa46000ba658a693
tree607b63fbb273519e381c9a259f4408efc3c9c51a
parent9939149933a7a1cac8ecce6d2dd87d648f1dc9c7
glupload: Add VideoMetas and GLSyncMeta to the raw uploaded buffers

This is done by reusing `gst_gl_memory_setup_buffer` avoiding to
duplicate code.

Without a VideoMeta, mapping those buffers lead to GstBuffer mapping the
buffer in system memory even when specifying the GL flags (through the
buffer merging mechanism) making the result totally broken.
gst-libs/gst/gl/gstglupload.c
tests/check/libs/gstglupload.c