From 54cfc46500aae092b417fd9cf582af04a1473508 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 6 Dec 2021 20:42:51 -0600 Subject: [PATCH] Fix VDPAU on X11 --- app/streaming/video/ffmpeg-renderers/vdpau.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/streaming/video/ffmpeg-renderers/vdpau.cpp b/app/streaming/video/ffmpeg-renderers/vdpau.cpp index 8ffcf1e6..654ff7b7 100644 --- a/app/streaming/video/ffmpeg-renderers/vdpau.cpp +++ b/app/streaming/video/ffmpeg-renderers/vdpau.cpp @@ -107,7 +107,7 @@ bool VDPAURenderer::initialize(PDECODER_PARAMETERS params) "VDPAU is not supported on Wayland"); return false; } - else { + else if (info.subsystem != SDL_SYSWM_X11) { SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "VDPAU is not supported on the current subsystem: %d", info.subsystem);