summaryrefslogtreecommitdiff
path: root/src/PlaylistFile.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2016-09-04 12:07:36 +0200
committerMax Kellermann <max@musicpd.org>2016-09-04 12:57:41 +0200
commitd775f13a034f0239f20670cbad01259acd6731ec (patch)
tree0ea0c8e5cf178cb5cc0e6eb9318c92aaf399478f /src/PlaylistFile.cxx
parentb630afdeda4a5e1b38ec93e98fd4a9e2fe86d510 (diff)
fs/io/FileOutputStream: merge all classes into one, add enum Mode
Prepare to add more modes.
Diffstat (limited to 'src/PlaylistFile.cxx')
-rw-r--r--src/PlaylistFile.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/PlaylistFile.cxx b/src/PlaylistFile.cxx
index 9c73a6030..069b1fce8 100644
--- a/src/PlaylistFile.cxx
+++ b/src/PlaylistFile.cxx
@@ -199,7 +199,6 @@ SavePlaylistFile(const PlaylistFileContents &contents, const char *utf8path)
assert(!path_fs.IsNull());
FileOutputStream fos(path_fs);
-
BufferedOutputStream bos(fos);
for (const auto &uri_utf8 : contents)
@@ -354,7 +353,7 @@ try {
const auto path_fs = spl_map_to_fs(utf8path);
assert(!path_fs.IsNull());
- AppendFileOutputStream fos(path_fs);
+ FileOutputStream fos(path_fs, FileOutputStream::Mode::APPEND_EXISTING);
if (fos.Tell() / (MPD_PATH_MAX + 1) >= playlist_max_length)
throw PlaylistError(PlaylistResult::TOO_LARGE,