From f98e6c9d4e5835279ced048c21f54567433094dd Mon Sep 17 00:00:00 2001 From: Carter Li Date: Sun, 10 Nov 2024 20:15:42 +0800 Subject: [PATCH] Sound (BSD): trim device names --- src/detection/sound/sound_bsd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/detection/sound/sound_bsd.c b/src/detection/sound/sound_bsd.c index af601b5a5..4487b42a4 100644 --- a/src/detection/sound/sound_bsd.c +++ b/src/detection/sound/sound_bsd.c @@ -39,6 +39,7 @@ const char* ffDetectSound(FFlist* devices) FFSoundDevice* device = ffListAdd(devices); ffStrbufInitS(&device->identifier, path); ffStrbufInitF(&device->name, "%s %s", ci.longname, ci.hw_info); + ffStrbufTrimRightSpace(&device->name); device->volume = mutemask & SOUND_MASK_VOLUME ? 0 : ((uint8_t) volume /*left*/ + (uint8_t) (volume >> 8) /*right*/) / 2;