gl: fix "winrt" string comparison in gst_gl_display_type_from_environment

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5511>
This commit is contained in:
Loïc Le Page 2023-10-19 18:45:29 +02:00 committed by GStreamer Marge Bot
parent e79b308f82
commit 34694bbfcf

View file

@ -308,7 +308,7 @@ gst_gl_display_type_from_environment (void)
return GST_GL_DISPLAY_TYPE_EAGL;
} else if (g_strstr_len (env, 7, "android")) {
return GST_GL_DISPLAY_TYPE_EGL;
} else if (g_strstr_len (env, 4, "winrt")) {
} else if (g_strstr_len (env, 5, "winrt")) {
return GST_GL_DISPLAY_TYPE_EGL;
} else {
return GST_GL_DISPLAY_TYPE_NONE;