From cc70fbadd758cc14bda3888babfa6fad94780c58 Mon Sep 17 00:00:00 2001 From: Tim Blechmann Date: Wed, 20 Mar 2024 12:00:48 +0800 Subject: GStreamer: fill context info MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Artem Dyomin Reviewed-by: Mikko Hallamaa (cherry picked from commit 49c066e39afb69e9042af4df1cc865aad47e6a20) Reviewed-by: Qt Cherry-pick Bot (cherry picked from commit 04efb04465aad960c7816499c1ca1ce3e72c3a3f) --- src/plugins/multimedia/gstreamer/common/qgstreamervideosink.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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) -- cgit v1.2.3