From 8743301af9ef89b7886898fbcb64310452a4af47 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Tue, 6 May 2014 16:39:55 +1000 Subject: [PATCH] gl/window: fix string length check for eagl --- gst-libs/gst/gl/gstglwindow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/gl/gstglwindow.c b/gst-libs/gst/gl/gstglwindow.c index 49ab3cac6c..84dbd31eae 100644 --- a/gst-libs/gst/gl/gstglwindow.c +++ b/gst-libs/gst/gl/gstglwindow.c @@ -182,7 +182,7 @@ gst_gl_window_new (GstGLDisplay * display) window = GST_GL_WINDOW (gst_gl_window_android_egl_new ()); #endif #if GST_GL_HAVE_WINDOW_EAGL - if (!window && (!user_choice || g_strstr_len (user_choice, 7, "eagl"))) + if (!window && (!user_choice || g_strstr_len (user_choice, 4, "eagl"))) window = GST_GL_WINDOW (gst_gl_window_eagl_new ()); #endif if (!window) {