diff options
author | Max Kellermann <max@duempel.org> | 2009-01-25 13:53:16 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-25 13:53:16 +0100 |
commit | 1a59afa388874a2ceadcef2644fa9e08f0a9b828 (patch) | |
tree | 8af86cb92d4d843351e2bd8937369fc3b1812563 /src/playlist.c | |
parent | 85f7e964dee606ecd6ceb2da7ce0e85d90c3f5ce (diff) | |
download | mpd-1a59afa388874a2ceadcef2644fa9e08f0a9b828.tar.gz mpd-1a59afa388874a2ceadcef2644fa9e08f0a9b828.tar.xz mpd-1a59afa388874a2ceadcef2644fa9e08f0a9b828.zip |
stored_playlist: moved configuration variables from playlist.c
Don't declare and export variables specific to stored playlists in
playlist.c/playlist.h.
Diffstat (limited to 'src/playlist.c')
-rw-r--r-- | src/playlist.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/src/playlist.c b/src/playlist.c index 98fac5b7b..2eecc3bea 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -67,17 +67,11 @@ #define PLAYLIST_HASH_MULT 4 -#define DEFAULT_PLAYLIST_MAX_LENGTH (1024*16) -#define DEFAULT_PLAYLIST_SAVE_ABSOLUTE_PATHS false - /** random number generator fur shuffling */ static GRand *g_rand; /** the global playlist object */ static struct playlist playlist; -unsigned playlist_max_length; - -bool playlist_saveAbsolutePaths = DEFAULT_PLAYLIST_SAVE_ABSOLUTE_PATHS; static void playPlaylistOrderNumber(int orderNum); @@ -110,18 +104,13 @@ void initPlaylist(void) { g_rand = g_rand_new(); - playlist_max_length = config_get_positive(CONF_MAX_PLAYLIST_LENGTH, - DEFAULT_PLAYLIST_MAX_LENGTH); - - queue_init(&playlist.queue, playlist_max_length); + queue_init(&playlist.queue, + config_get_positive(CONF_MAX_PLAYLIST_LENGTH, + DEFAULT_PLAYLIST_MAX_LENGTH)); playlist.queued = -1; playlist.current = -1; - playlist_saveAbsolutePaths = - config_get_bool(CONF_SAVE_ABSOLUTE_PATHS, - DEFAULT_PLAYLIST_SAVE_ABSOLUTE_PATHS); - event_pipe_register(PIPE_EVENT_TAG, playlist_tag_event); } |