From 085a904970e3a1c6ee86c7c2434fb8552adee0a6 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 25 Nov 2021 17:52:54 +0300 Subject: [PATCH] Fix false warning when building without libva-x11 or libva-wayland --- app/streaming/video/ffmpeg-renderers/vaapi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/streaming/video/ffmpeg-renderers/vaapi.h b/app/streaming/video/ffmpeg-renderers/vaapi.h index 08107398..5294461f 100644 --- a/app/streaming/video/ffmpeg-renderers/vaapi.h +++ b/app/streaming/video/ffmpeg-renderers/vaapi.h @@ -3,13 +3,13 @@ #include "renderer.h" // Avoid X11 if SDL was built without it -#ifndef SDL_VIDEO_DRIVER_X11 +#if !defined(SDL_VIDEO_DRIVER_X11) && defined(HAVE_LIBVA_X11) #warning Unable to use libva-x11 without SDL support #undef HAVE_LIBVA_X11 #endif // Avoid Wayland if SDL was built without it -#ifndef SDL_VIDEO_DRIVER_WAYLAND +#if !defined(SDL_VIDEO_DRIVER_WAYLAND) && defined(HAVE_LIBVA_WAYLAND) #warning Unable to use libva-wayland without SDL support #undef HAVE_LIBVA_WAYLAND #endif