From 1a59afa388874a2ceadcef2644fa9e08f0a9b828 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 25 Jan 2009 13:53:16 +0100 Subject: stored_playlist: moved configuration variables from playlist.c Don't declare and export variables specific to stored playlists in playlist.c/playlist.h. --- src/playlist.c | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'src/playlist.c') 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); } -- cgit v1.2.3