gldownload: use gst_gl_sync_meta_wait_cpu()
authorJakub Adam <jakub.adam@collabora.com>
Wed, 29 May 2024 17:12:21 +0000 (19:12 +0200)
committerBackport Bot <gitlab-backport-bot@gstreamer-foundation.org>
Tue, 1 Oct 2024 16:12:37 +0000 (17:12 +0100)
commit1250f6fc7e37f432d07dcbaa1d82c24dc5724846
tree80f5ccbaf6d7e0b0a2a7035f0f4463357f0ef5ba
parent6b18f0233900ae4ecdbcde0ce76ab55fd85286f4
gldownload: use gst_gl_sync_meta_wait_cpu()

Simple gst_gl_sync_meta_wait() is not sufficient to ensure GL commands
are executed before dma-buf devices get to see the buffer.

This is the first step that should make the code behave correctly for
everybody, although there may be performance penalty. In the future we
should introduce a more general sync meta that would allow to move the
waiting from gldownload (the producer) to the sink elements (the
consumers).

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7595>
subprojects/gst-plugins-base/ext/gl/gstgldownloadelement.c