From 02e48ad8dc3f31971786addb795d54851ff2360c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Tue, 1 Aug 2017 17:59:38 +0200 Subject: [PATCH] plugins: avoid dead code detection By using #elif macro, the static code analysis would stop to detect these lines as dead code. Also it is inforced the mutually exclusive environments. --- gst/vaapi/gstvaapipluginutil.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gst/vaapi/gstvaapipluginutil.c b/gst/vaapi/gstvaapipluginutil.c index e9ff8b6e93..c38334fc25 100644 --- a/gst/vaapi/gstvaapipluginutil.c +++ b/gst/vaapi/gstvaapipluginutil.c @@ -180,8 +180,7 @@ gst_vaapi_create_display_from_gl_context (GstObject * gl_context_object) #if USE_X11 && GST_GL_HAVE_WINDOW_X11 if (!display_type) display_type = GST_VAAPI_DISPLAY_TYPE_X11; -#endif -#if USE_WAYLAND && GST_GL_HAVE_WINDOW_WAYLAND +#elif USE_WAYLAND && GST_GL_HAVE_WINDOW_WAYLAND if (!display_type) display_type = GST_VAAPI_DISPLAY_TYPE_WAYLAND; #endif