summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Blechmann <tim@klingt.org>2024-03-20 12:00:48 +0800
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2024-03-21 13:35:21 +0000
commitcc70fbadd758cc14bda3888babfa6fad94780c58 (patch)
tree273b34cf2a165bec1ef51f2d084b2701278b2b9c
parent0ffae9a04980d347b3fa7929878f8d92b99e9f9e (diff)
GStreamer: fill context info
GStreamer warns that: The application may be missing a call to gst_gl_context_fill_info() So we do what gstreamer asks from us. Pick-to: 6.5 Change-Id: Ic90d4d2c9f2c2b4b698aa2da0f5ab10de1525add Reviewed-by: Jøger Hansegård <joger.hansegard@qt.io> Reviewed-by: Artem Dyomin <artem.dyomin@qt.io> Reviewed-by: Mikko Hallamaa <mikko.hallamaa@qt.io> (cherry picked from commit 49c066e39afb69e9042af4df1cc865aad47e6a20) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 04efb04465aad960c7816499c1ca1ce3e72c3a3f)
-rw-r--r--src/plugins/multimedia/gstreamer/common/qgstreamervideosink.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/multimedia/gstreamer/common/qgstreamervideosink.cpp b/src/plugins/multimedia/gstreamer/common/qgstreamervideosink.cpp
index 7f7d9a49b..11349425b 100644
--- a/src/plugins/multimedia/gstreamer/common/qgstreamervideosink.cpp
+++ b/src/plugins/multimedia/gstreamer/common/qgstreamervideosink.cpp
@@ -266,7 +266,15 @@ void QGstreamerVideoSink::updateGstContexts()
if (!appContext)
qWarning() << "Could not create wrappped context for platform:" << glPlatform;
+ gst_gl_context_activate(appContext.get(), true);
+
QUniqueGErrorHandle error;
+ gst_gl_context_fill_info(appContext.get(), &error);
+ if (error) {
+ qWarning() << "Could not fill context info:" << error;
+ error = {};
+ }
+
QGstGLContextHandle displayContext;
gst_gl_display_create_context(gstGlDisplay.get(), appContext.get(), &displayContext, &error);
if (error)