]> git.tuebingen.mpg.de Git - paraslash.git/commit
Calculate width of audio formats in ls output.
authorAndre Noll <maan@systemlinux.org>
Mon, 1 Aug 2011 22:22:58 +0000 (00:22 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 13 Nov 2011 13:40:48 +0000 (14:40 +0100)
commitb8ece14bf778401197598c72a7fd7bcd1400aad0
tree535d72bec03a5adf9e85b5f6a81fa1b2376d5eb4
parentdef3ce0458757c7a82e6c0abe1b38cb7f7451536
Calculate width of audio formats in ls output.

Currently the field width for the audio format is hard-coded as three
as the name of each supported audio format (mp3, ogg, aac, wma, spx)
consists of three characters.

However, with the forthcoming flac support, this is no longer true
since "flac" consists of four characters. So the ls command must
calculate the maximal field width of the audio formats of all listed
files.

This is achieved by introducing the new audio_format_width member of
struct ls_widths.
aft.c