Playlist: pass max_length to playlist_init()

Move the configuration lookup to Main.cxx.
This commit is contained in:
Max Kellermann
2013-01-04 22:55:11 +01:00
parent 2a9d933a81
commit e89bd30db5
4 changed files with 8 additions and 10 deletions

View File

@@ -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);