diff options
author | Max Kellermann <max@duempel.org> | 2009-01-17 20:23:33 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-17 20:23:33 +0100 |
commit | a1a97cc048a443eb71944848592b9827991600fd (patch) | |
tree | e3bfbf5bd38a851d2823b99a00f4abba9ba1db43 /src/playlist.c | |
parent | 4d472c265ed0b3f7f61ee624c01c8ef319db7c99 (diff) | |
download | mpd-a1a97cc048a443eb71944848592b9827991600fd.tar.gz mpd-a1a97cc048a443eb71944848592b9827991600fd.tar.xz mpd-a1a97cc048a443eb71944848592b9827991600fd.zip |
conf: use config_get_bool() instead of getBoolConfigParam()
Diffstat (limited to 'src/playlist.c')
-rw-r--r-- | src/playlist.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/playlist.c b/src/playlist.c index 4d4e0102d..20ea05907 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -121,7 +121,6 @@ void initPlaylist(void) { char *test; struct config_param *param; - int value; g_rand = g_rand_new(); @@ -141,12 +140,9 @@ void initPlaylist(void) "line %i", param->value, param->line); } - value = getBoolConfigParam(CONF_SAVE_ABSOLUTE_PATHS, 1); - if (value != CONF_BOOL_UNSET) - playlist_saveAbsolutePaths = value; - else - playlist_saveAbsolutePaths = - DEFAULT_PLAYLIST_SAVE_ABSOLUTE_PATHS; + playlist_saveAbsolutePaths = + config_get_bool(CONF_SAVE_ABSOLUTE_PATHS, + DEFAULT_PLAYLIST_SAVE_ABSOLUTE_PATHS); playlist.songs = g_malloc(sizeof(playlist.songs[0]) * playlist_max_length); |