From 8ba031b761995c2c7565ff74d5b38a635b0b6480 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Wed, 10 Jan 2024 14:22:56 +0800 Subject: [PATCH] Brightness (FreeBSD): don't print empty `()` --- src/detection/brightness/brightness_bsd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/detection/brightness/brightness_bsd.c b/src/detection/brightness/brightness_bsd.c index 34b91ab5c..22b3772fb 100644 --- a/src/detection/brightness/brightness_bsd.c +++ b/src/detection/brightness/brightness_bsd.c @@ -36,6 +36,8 @@ const char* ffDetectBrightness(FF_MAYBE_UNUSED FFBrightnessOptions* options, FFl struct backlight_info info; if(ioctl(blfd, BACKLIGHTGETINFO, &info) < 0) ffStrbufAppendS(&brightness->name, info.name); + else + ffStrbufAppendS(&brightness->name, path + strlen("/dev/backlight/")); } return NULL; }