qt: initialize GError properly in gst_qt_get_gl_wrapcontext()

Spotted by Claus Stovgaard.

Fixes #1545

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3327>
This commit is contained in:
Tim-Philipp Müller 2022-11-04 17:48:01 +00:00 committed by GStreamer Marge Bot
parent dd35ec3ddd
commit edc2e8312e

View 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);