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.
This commit is contained in:
Víctor Manuel Jáquez Leal 2017-08-01 17:59:38 +02:00
parent de0f8936f8
commit 02e48ad8dc

View file

@ -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