diff --git a/gst-libs/gst/gl/gstglwindow.c b/gst-libs/gst/gl/gstglwindow.c index d4f57a5765..8d64e78c5d 100644 --- a/gst-libs/gst/gl/gstglwindow.c +++ b/gst-libs/gst/gl/gstglwindow.c @@ -149,14 +149,14 @@ gst_gl_window_new (GstGLDisplay * display) window = GST_GL_WINDOW (gst_gl_window_cocoa_new ()); } #endif -#if GST_GL_HAVE_WINDOW_DISPMANX - if (!window && (!user_choice || g_strstr_len (user_choice, 8, "dispmanx"))) - window = GST_GL_WINDOW (gst_gl_window_dispmanx_egl_new ()); -#endif #if GST_GL_HAVE_WINDOW_WAYLAND if (!window && (!user_choice || g_strstr_len (user_choice, 7, "wayland"))) window = GST_GL_WINDOW (gst_gl_window_wayland_egl_new ()); #endif +#if GST_GL_HAVE_WINDOW_DISPMANX + if (!window && (!user_choice || g_strstr_len (user_choice, 8, "dispmanx"))) + window = GST_GL_WINDOW (gst_gl_window_dispmanx_egl_new ()); +#endif #if GST_GL_HAVE_WINDOW_ANDROID if (!window && (!user_choice || g_strstr_len (user_choice, 7, "android"))) window = GST_GL_WINDOW (gst_gl_window_android_egl_new ());