gl/viv-fb: Fix user-choice string comparisons
authorCarlos Rafael Giani <dv@pseudoterminal.org>
Tue, 9 May 2017 21:59:04 +0000 (23:59 +0200)
committerMatthew Waters <matthew@centricular.com>
Sun, 21 May 2017 14:52:23 +0000 (16:52 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=782921

gst-libs/gst/gl/gstgldisplay.c
gst-libs/gst/gl/gstglwindow.c

index d7f4a59..9fc42e4 100644 (file)
@@ -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");
index a282b4a..c2e8be0 100644 (file)
@@ -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