aboutsummaryrefslogtreecommitdiffstats
path: root/src/Main.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-04 22:55:11 +0100
committerMax Kellermann <max@duempel.org>2013-01-04 22:55:11 +0100
commite89bd30db56c282c9c97d3d02c01155e7d8daa80 (patch)
tree7d0ca6d39dce6f5f0f156fb50aecf9c0e73fd030 /src/Main.cxx
parent2a9d933a81a6192f4d30cbf68253727f92f9bdac (diff)
downloadmpd-e89bd30db56c282c9c97d3d02c01155e7d8daa80.tar.gz
mpd-e89bd30db56c282c9c97d3d02c01155e7d8daa80.tar.xz
mpd-e89bd30db56c282c9c97d3d02c01155e7d8daa80.zip
Playlist: pass max_length to playlist_init()
Move the configuration lookup to Main.cxx.
Diffstat (limited to 'src/Main.cxx')
-rw-r--r--src/Main.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Main.cxx b/src/Main.cxx
index b4b5cbb8e..7f56d83a4 100644
--- a/src/Main.cxx
+++ b/src/Main.cxx
@@ -414,7 +414,8 @@ int mpd_main(int argc, char *argv[])
}
initPermissions();
- playlist_global_init();
+ playlist_global_init(config_get_positive(CONF_MAX_PLAYLIST_LENGTH,
+ DEFAULT_PLAYLIST_MAX_LENGTH));
spl_global_init();
#ifdef ENABLE_ARCHIVE
archive_plugin_init_all();