summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2016-11-22 12:25:52 +0100
committerMax Kellermann <max@musicpd.org>2016-11-22 16:49:31 +0100
commit95e2bec215b17e11601edf5456eaf0e73ccc944d (patch)
tree7b1471f36e519ec9a0ff2970401b08ada677cf46 /test
parent72c96052b4f4c18959fe0fb374bc8c17cb9c19fe (diff)
decoder/DecoderPlugin: container_scan() returns forward_list<DetachedSong>
Speed up container_scan() again, by eliminating the need to call scan_file() for each item.
Diffstat (limited to 'test')
-rw-r--r--test/ContainerScan.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/ContainerScan.cxx b/test/ContainerScan.cxx
index 7ec55c0fe..40ec29276 100644
--- a/test/ContainerScan.cxx
+++ b/test/ContainerScan.cxx
@@ -19,6 +19,8 @@
#include "config.h"
#include "Log.hxx"
+#include "DetachedSong.hxx"
+#include "SongSave.hxx"
#include "decoder/DecoderList.hxx"
#include "decoder/DecoderPlugin.hxx"
#include "fs/Path.hxx"
@@ -84,7 +86,7 @@ try {
BufferedOutputStream bos(sos);
for (const auto &song : v)
- bos.Format("%s\n", song.c_str());
+ song_save(bos, song);
bos.Flush();