From 7e1be0192d39421daa2b29fbcb1838889704dd8a Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 1 Aug 2024 05:22:32 +0200 Subject: Only show hdr codecs in info output if wayland --- src/main.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index f2022f9..50fa7f8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1658,16 +1658,18 @@ static void list_gpu_info(gsr_egl *egl) { } } -static void list_supported_video_codecs(gsr_egl *egl) { +static void list_supported_video_codecs(gsr_egl *egl, bool wayland) { if(find_h264_encoder(egl->gpu_info.vendor, egl->card_path)) puts("h264"); if(find_hevc_encoder(egl->gpu_info.vendor, egl->card_path)) { puts("hevc"); - puts("hevc_hdr"); + if(wayland) + puts("hevc_hdr"); } if(find_av1_encoder(egl->gpu_info.vendor, egl->card_path)) { puts("av1"); - puts("av1_hdr"); + if(wayland) + puts("av1_hdr"); } if(find_vp8_encoder(egl->gpu_info.vendor, egl->card_path)) puts("vp8"); @@ -1767,7 +1769,7 @@ static void info_command() { puts("section=gpu_info"); list_gpu_info(&egl); puts("section=video_codecs"); - list_supported_video_codecs(&egl); + list_supported_video_codecs(&egl, wayland); puts("section=capture_options"); list_supported_capture_options(&egl, wayland); -- cgit v1.2.3