diff options
author | Kalle Wallin <kaw@linux.se> | 2004-07-13 17:31:53 +0000 |
---|---|---|
committer | Kalle Wallin <kaw@linux.se> | 2004-07-13 17:31:53 +0000 |
commit | 0c1c6a258b7a2675cc9eb930ec59378dcac1d030 (patch) | |
tree | 4d486f804dc326741fb7717d7f3b02a1cd1f4ed1 /src/conf.c | |
parent | f674c3f262a6bf2542debd29c4aa61281a976cbc (diff) | |
download | mpd-0c1c6a258b7a2675cc9eb930ec59378dcac1d030.tar.gz mpd-0c1c6a258b7a2675cc9eb930ec59378dcac1d030.tar.xz mpd-0c1c6a258b7a2675cc9eb930ec59378dcac1d030.zip |
Crossfade time can now be definied in the rc file (crossfade-time)
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1865 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/conf.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/conf.c b/src/conf.c index b31b7b173..740939d10 100644 --- a/src/conf.c +++ b/src/conf.c @@ -58,6 +58,7 @@ #define CONF_VISIBLE_BELL "visible-bell" #define CONF_XTERM_TITLE "set-xterm-title" #define CONF_ENABLE_MOUSE "enable-mouse" +#define CONF_CROSSFADE_TIME "crossfade-time" typedef enum { KEY_PARSER_UNKNOWN, @@ -467,6 +468,10 @@ read_rc_file(char *filename, options_t *options) { options->enable_mouse = str2bool(value); } + else if( !strcasecmp(CONF_CROSSFADE_TIME, name) ) + { + options->crossfade_time = atoi(value); + } else { match_found = 0; |