aboutsummaryrefslogtreecommitdiffstats
path: root/src/conf.c
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2008-09-21 19:37:43 +0200
committerMax Kellermann <max@duempel.org>2008-09-21 21:51:00 +0200
commit61053ab09a52c4a0ca36ed4e7eb01cc8a26463d9 (patch)
tree6737e887d505d640b880cea1a2cb8078512d013b /src/conf.c
parentad98c332ac7551dbf1f99b2c7f5ae60e1009787f (diff)
downloadmpd-61053ab09a52c4a0ca36ed4e7eb01cc8a26463d9.tar.gz
mpd-61053ab09a52c4a0ca36ed4e7eb01cc8a26463d9.tar.xz
mpd-61053ab09a52c4a0ca36ed4e7eb01cc8a26463d9.zip
added optional bitrate display to status bar
If visible-bitrate is enabled, then the current bitrate will be drawn next to the song time in the status bar. By default it will not be displayed.
Diffstat (limited to 'src/conf.c')
-rw-r--r--src/conf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/conf.c b/src/conf.c
index 970bc0889..ac48e9cdb 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -70,6 +70,7 @@
#define CONF_SHOW_SPLASH "show-splash"
#define CONF_SCROLL "scroll"
#define CONF_SCROLL_SEP "scroll-sep"
+#define CONF_VISIBLE_BITRATE "visible-bitrate"
typedef enum {
KEY_PARSER_UNKNOWN,
@@ -462,6 +463,10 @@ read_rc_file(char *filename, options_t *options)
{
options->wide_cursor = str2bool(value);
}
+ /* visible bitrate */
+ else if (!strcasecmp(CONF_VISIBLE_BITRATE, name)) {
+ options->visible_bitrate = str2bool(value);
+ }
/* timer display type */
else if( !strcasecmp(CONF_TIMEDISPLAY_TYPE, name) )
{