Skip to content

Commit f98e6c9

Browse files
committed
Sound (BSD): trim device names
1 parent 59c6665 commit f98e6c9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/detection/sound/sound_bsd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ const char* ffDetectSound(FFlist* devices)
3939
FFSoundDevice* device = ffListAdd(devices);
4040
ffStrbufInitS(&device->identifier, path);
4141
ffStrbufInitF(&device->name, "%s %s", ci.longname, ci.hw_info);
42+
ffStrbufTrimRightSpace(&device->name);
4243
device->volume = mutemask & SOUND_MASK_VOLUME
4344
? 0
4445
: ((uint8_t) volume /*left*/ + (uint8_t) (volume >> 8) /*right*/) / 2;

0 commit comments

Comments
 (0)