mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-05-15 20:58:57 +00:00
gl/context/wgl: Add missing NULL init
The value of uninitialized local variable is varying depending on compiler and not guaranteed to be NULL initialized. That results in pointing random address instead of expected function pointer. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1222>
This commit is contained in:
parent
6389eef70d
commit
aa34710bb6
1 changed files with 1 additions and 1 deletions
|
@ -493,7 +493,7 @@ load_opengl_dll_module (gpointer user_data)
|
|||
gpointer
|
||||
gst_gl_context_wgl_get_proc_address (GstGLAPI gl_api, const gchar * name)
|
||||
{
|
||||
gpointer result;
|
||||
gpointer result = NULL;
|
||||
|
||||
if (gl_api & (GST_GL_API_OPENGL | GST_GL_API_OPENGL3)) {
|
||||
g_once (&module_opengl_dll_gonce, load_opengl_dll_module, NULL);
|
||||
|
|
Loading…
Reference in a new issue