aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist_state.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-07-25 12:21:47 +0200
committerMax Kellermann <max@duempel.org>2010-07-25 13:28:54 +0200
commitcbb1ab58cdf18b59488d543427cd4ec238426bf8 (patch)
tree06049f1f6ea443d5aeacfc7cbc84a1836aeca1f9 /src/playlist_state.c
parentb01235e3307ae9908c3cc08f34a08a13a1b18029 (diff)
downloadmpd-cbb1ab58cdf18b59488d543427cd4ec238426bf8.tar.gz
mpd-cbb1ab58cdf18b59488d543427cd4ec238426bf8.tar.xz
mpd-cbb1ab58cdf18b59488d543427cd4ec238426bf8.zip
queue_save: save tags and range of non-database songs
Use the functions song_save() and song_load() to use the same format as in the database file for those songs which need the tags.
Diffstat (limited to '')
-rw-r--r--src/playlist_state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/playlist_state.c b/src/playlist_state.c
index b0f99dd05..89bb56607 100644
--- a/src/playlist_state.c
+++ b/src/playlist_state.c
@@ -108,7 +108,7 @@ playlist_state_load(FILE *fp, GString *buffer, struct playlist *playlist)
}
while (!g_str_has_prefix(line, PLAYLIST_STATE_FILE_PLAYLIST_END)) {
- queue_load_song(&playlist->queue, line);
+ queue_load_song(fp, buffer, line, &playlist->queue);
line = read_text_line(fp, buffer);
if (line == NULL) {