From edc2e8312ee3e0fca61dc81226b75ad130a2fc58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 4 Nov 2022 17:48:01 +0000 Subject: [PATCH] qt: initialize GError properly in gst_qt_get_gl_wrapcontext() Spotted by Claus Stovgaard. Fixes #1545 Part-of: --- subprojects/gst-plugins-good/ext/qt/gstqtglutility.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-good/ext/qt/gstqtglutility.cc b/subprojects/gst-plugins-good/ext/qt/gstqtglutility.cc index e35f03494f..ad04f14b17 100644 --- a/subprojects/gst-plugins-good/ext/qt/gstqtglutility.cc +++ b/subprojects/gst-plugins-good/ext/qt/gstqtglutility.cc @@ -183,7 +183,7 @@ gst_qt_get_gl_wrapcontext (GstGLDisplay * display, GstGLAPI G_GNUC_UNUSED gl_api; guintptr G_GNUC_UNUSED gl_handle; GstGLContext *current; - GError *error; + GError *error = NULL; g_return_val_if_fail (display != NULL && wrap_glcontext != NULL, FALSE);