qt: deactivate context if fill_info fails
authorBo Elmgreen <bo.elmgreen@gmail.com>
Wed, 30 Nov 2022 13:32:52 +0000 (14:32 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 1 Dec 2022 14:21:37 +0000 (14:21 +0000)
commit1f88f411bce08dc1df820681aee8dba3cd132c24
tree952c517201456d63f3a3b298314174639db0a23b
parent925715c734d5f9d594468c38dd19672e23e9e69b
qt: deactivate context if fill_info fails

Now the OpenGL context is deactivated if call to gst_gl_context_fill_info()
fails in gst_qt_get_gl_wrapcontext(), preventing that the context is left
activated, which could lead to invalid memory reads.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3492>
subprojects/gst-plugins-good/ext/qt/gstqtglutility.cc
subprojects/gst-plugins-good/ext/qt6/gstqt6glutility.cc