mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
2bbc2a4c52
After rendering a QML scene the qml6glsrc element copies the contents of the scene to a GStreamer buffer. This happens on the Qt render thread. Then it attaches a sync point to the destination buffer. This sync point must be awaited by other threads which use the buffer later on. The current implementation relies on the downstream elements to wait for the sync point. However, there are situation where this does not work. The GstBaseTransform e.g. copies the buffer metadata (which overwrites the sync point without waiting for it) *before* waiting for the sync point. This commit waits for the sync point inside the qml6glsrc element before sending it downstream. The wait command is issued on the streaming thread with the pipeline OpenGL context, i.e. it will synchronize with the GStreamer OpenGL thread. This is a port of the original fix for the qmlglsrc element. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5519> |
||
---|---|---|
.. | ||
gstplugin.cc | ||
gstqml6glmixer.cc | ||
gstqml6glmixer.h | ||
gstqml6gloverlay.cc | ||
gstqml6gloverlay.h | ||
gstqml6glsink.cc | ||
gstqml6glsink.h | ||
gstqml6glsrc.cc | ||
gstqml6glsrc.h | ||
gstqsg6material.cc | ||
gstqsg6material.h | ||
gstqt6element.cc | ||
gstqt6elements.h | ||
gstqt6gl.h | ||
gstqt6glutility.cc | ||
gstqt6glutility.h | ||
meson.build | ||
qt6glitem.cc | ||
qt6glitem.h | ||
qt6glrenderer.cc | ||
qt6glrenderer.h | ||
qt6glwindow.cc | ||
qt6glwindow.h | ||
resources.qrc | ||
RGBA.frag | ||
vertex.vert | ||
YUV_TRIPLANAR.frag |