diff options
-rw-r--r-- | src/plugins/multimedia/gstreamer/common/qgstreamervideosink.cpp | 8 |
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) |