PR #22700 opened by Marton Balint (cus)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22700
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22700.patch

Fixes ffplay compilation with disabled vulkan.

Signed-off-by: Marton Balint <[email protected]>


>From 0810a63ed7bdd8158b0cddf0d863c47f39bfc16b Mon Sep 17 00:00:00 2001
From: Marton Balint <[email protected]>
Date: Fri, 3 Apr 2026 23:54:01 +0200
Subject: [PATCH] fftools/ffplay_renderer: only compile renderer if VULKAN is
 enabled

Fixes ffplay compilation with disabled vulkan.

Signed-off-by: Marton Balint <[email protected]>
---
 fftools/ffplay_renderer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fftools/ffplay_renderer.c b/fftools/ffplay_renderer.c
index e7fa7197cb..d58a4d67bc 100644
--- a/fftools/ffplay_renderer.c
+++ b/fftools/ffplay_renderer.c
@@ -22,7 +22,7 @@
 #include "config.h"
 #include "ffplay_renderer.h"
 
-#if (SDL_VERSION_ATLEAST(2, 0, 6) && CONFIG_LIBPLACEBO)
+#if (SDL_VERSION_ATLEAST(2, 0, 6) && CONFIG_LIBPLACEBO && CONFIG_VULKAN)
 /* Get PL_API_VER */
 #include <libplacebo/config.h>
 #define HAVE_VULKAN_RENDERER (PL_API_VER >= 278)
-- 
2.52.0

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to