diff options
author | Max Kellermann <max@duempel.org> | 2013-01-04 22:55:11 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-04 22:55:11 +0100 |
commit | e89bd30db56c282c9c97d3d02c01155e7d8daa80 (patch) | |
tree | 7d0ca6d39dce6f5f0f156fb50aecf9c0e73fd030 /src/PlaylistGlobal.cxx | |
parent | 2a9d933a81a6192f4d30cbf68253727f92f9bdac (diff) | |
download | mpd-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 '')
-rw-r--r-- | src/PlaylistGlobal.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PlaylistGlobal.cxx b/src/PlaylistGlobal.cxx index 91c571b6f..d9685a2be 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); |