qt: initialize GError properly in gst_qt_get_gl_wrapcontext()
authorTim-Philipp Müller <tim@centricular.com>
Fri, 4 Nov 2022 17:48:01 +0000 (17:48 +0000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 4 Nov 2022 20:39:16 +0000 (20:39 +0000)
Spotted by Claus Stovgaard.

Fixes #1545

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3327>

subprojects/gst-plugins-good/ext/qt/gstqtglutility.cc

index e35f034..ad04f14 100644 (file)
@@ -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);