From: Tim-Philipp Müller Date: Fri, 4 Nov 2022 17:48:01 +0000 (+0000) Subject: qt: initialize GError properly in gst_qt_get_gl_wrapcontext() X-Git-Tag: 1.22.0~577 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=edc2e8312ee3e0fca61dc81226b75ad130a2fc58;p=platform%2Fupstream%2Fgstreamer.git qt: initialize GError properly in gst_qt_get_gl_wrapcontext() Spotted by Claus Stovgaard. Fixes #1545 Part-of: --- diff --git a/subprojects/gst-plugins-good/ext/qt/gstqtglutility.cc b/subprojects/gst-plugins-good/ext/qt/gstqtglutility.cc index e35f034..ad04f14 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);