From cdd4f4532cdd1864e651da4f2366906146b7728a Mon Sep 17 00:00:00 2001 From: Carlos Rafael Giani Date: Tue, 9 May 2017 23:59:04 +0200 Subject: [PATCH] gl/viv-fb: Fix user-choice string comparisons https://bugzilla.gnome.org/show_bug.cgi?id=782921 --- gst-libs/gst/gl/gstgldisplay.c | 2 +- gst-libs/gst/gl/gstglwindow.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/gl/gstgldisplay.c b/gst-libs/gst/gl/gstgldisplay.c index d7f4a5913b..9fc42e4092 100644 --- a/gst-libs/gst/gl/gstgldisplay.c +++ b/gst-libs/gst/gl/gstgldisplay.c @@ -301,7 +301,7 @@ gst_gl_display_new (void) display = GST_GL_DISPLAY (gst_gl_display_wayland_new (NULL)); #endif #if GST_GL_HAVE_WINDOW_VIV_FB - if (!display && (!user_choice || g_strstr_len (user_choice, 2, "viv-fb"))) { + if (!display && (!user_choice || g_strstr_len (user_choice, 6, "viv-fb"))) { const gchar *disp_idx_str = NULL; gint disp_idx = 0; disp_idx_str = g_getenv ("GST_GL_VIV_FB"); diff --git a/gst-libs/gst/gl/gstglwindow.c b/gst-libs/gst/gl/gstglwindow.c index a282b4a24c..c2e8be07c0 100644 --- a/gst-libs/gst/gl/gstglwindow.c +++ b/gst-libs/gst/gl/gstglwindow.c @@ -275,7 +275,7 @@ gst_gl_window_new (GstGLDisplay * display) window = GST_GL_WINDOW (gst_gl_window_eagl_new (display)); #endif #if GST_GL_HAVE_WINDOW_VIV_FB - if (!window && (!user_choice || g_strstr_len (user_choice, 2, "viv-fb"))) + if (!window && (!user_choice || g_strstr_len (user_choice, 6, "viv-fb"))) window = GST_GL_WINDOW (gst_gl_window_viv_fb_egl_new (display)); #endif -- 2.34.1