mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
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:
parent
de0f8936f8
commit
02e48ad8dc
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue