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)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 5 Oct 2019 12:34:58 +0000 (12:34 +0000)
commit869fc917a5784ade2b4c58e122900029e0069257
treee77e5b0c5c3f5a0ae15c256ca83d8c29208b5606
parentb2361cb477a9209ee2130536f1aab43ceb5474be
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