mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
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/3339>
This commit is contained in:
parent
4dca76396e
commit
c2f58cf2e3
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,7 @@ gst_qt_get_gl_wrapcontext (GstGLDisplay * display,
|
||||||
GstGLAPI G_GNUC_UNUSED gl_api;
|
GstGLAPI G_GNUC_UNUSED gl_api;
|
||||||
guintptr G_GNUC_UNUSED gl_handle;
|
guintptr G_GNUC_UNUSED gl_handle;
|
||||||
GstGLContext *current;
|
GstGLContext *current;
|
||||||
GError *error;
|
GError *error = NULL;
|
||||||
|
|
||||||
g_return_val_if_fail (display != NULL && wrap_glcontext != NULL, FALSE);
|
g_return_val_if_fail (display != NULL && wrap_glcontext != NULL, FALSE);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue