diff options
author | Max Kellermann <max@duempel.org> | 2013-01-02 22:16:52 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-03 02:25:06 +0100 |
commit | 9023ba4a81d597c8694432655833cf23d83c6cde (patch) | |
tree | 304c2465ea160297dff17302f36c4cc38687ccb6 /src/DirectorySave.cxx | |
parent | 83488848e1091024a0a307b1539c1a85762ee1f1 (diff) | |
download | mpd-9023ba4a81d597c8694432655833cf23d83c6cde.tar.gz mpd-9023ba4a81d597c8694432655833cf23d83c6cde.tar.xz mpd-9023ba4a81d597c8694432655833cf23d83c6cde.zip |
PlaylistVector: use std::list
Diffstat (limited to '')
-rw-r--r-- | src/DirectorySave.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DirectorySave.cxx b/src/DirectorySave.cxx index 6fcc9ccc0..cd750c9b2 100644 --- a/src/DirectorySave.cxx +++ b/src/DirectorySave.cxx @@ -72,7 +72,7 @@ directory_save(FILE *fp, const Directory *directory) directory_for_each_song(song, directory) song_save(fp, song); - playlist_vector_save(fp, &directory->playlists); + playlist_vector_save(fp, directory->playlists); if (!directory->IsRoot()) fprintf(fp, DIRECTORY_END "%s\n", directory->GetPath()); @@ -168,7 +168,7 @@ directory_load(FILE *fp, Directory *directory, buffer */ char *name = g_strdup(line + sizeof(PLAYLIST_META_BEGIN) - 1); - if (!playlist_metadata_load(fp, &directory->playlists, + if (!playlist_metadata_load(fp, directory->playlists, name, buffer, error)) { g_free(name); return false; |