From e89bd30db56c282c9c97d3d02c01155e7d8daa80 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 4 Jan 2013 22:55:11 +0100 Subject: Playlist: pass max_length to playlist_init() Move the configuration lookup to Main.cxx. --- src/PlaylistGlobal.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/PlaylistGlobal.cxx') diff --git a/src/PlaylistGlobal.cxx b/src/PlaylistGlobal.cxx index 91c571b6..d9685a2b 100644 --- a/src/PlaylistGlobal.cxx +++ b/src/PlaylistGlobal.cxx @@ -45,9 +45,9 @@ playlist_event(void) } void -playlist_global_init(void) +playlist_global_init(unsigned max_length) { - playlist_init(&g_playlist); + playlist_init(&g_playlist, max_length); event_pipe_register(PIPE_EVENT_TAG, playlist_tag_event); event_pipe_register(PIPE_EVENT_PLAYLIST, playlist_event); -- cgit v1.2.3