diff options
Diffstat (limited to 'src/stored_playlist.c')
-rw-r--r-- | src/stored_playlist.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/stored_playlist.c b/src/stored_playlist.c index 26dcb34d3..f802add94 100644 --- a/src/stored_playlist.c +++ b/src/stored_playlist.c @@ -24,6 +24,7 @@ #include "ls.h" #include "database.h" #include "idle.h" +#include "conf.h" #include <assert.h> #include <sys/types.h> @@ -33,6 +34,20 @@ #include <string.h> #include <errno.h> +static unsigned playlist_max_length; +bool playlist_saveAbsolutePaths = DEFAULT_PLAYLIST_SAVE_ABSOLUTE_PATHS; + +void +spl_global_init(void) +{ + playlist_max_length = config_get_positive(CONF_MAX_PLAYLIST_LENGTH, + DEFAULT_PLAYLIST_MAX_LENGTH); + + playlist_saveAbsolutePaths = + config_get_bool(CONF_SAVE_ABSOLUTE_PATHS, + DEFAULT_PLAYLIST_SAVE_ABSOLUTE_PATHS); +} + static struct stored_playlist_info * load_playlist_info(const char *parent_path_fs, const char *name_fs) { |