diff options
author | Max Kellermann <max@musicpd.org> | 2016-11-22 12:25:52 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2016-11-22 16:49:31 +0100 |
commit | 95e2bec215b17e11601edf5456eaf0e73ccc944d (patch) | |
tree | 7b1471f36e519ec9a0ff2970401b08ada677cf46 /test/ContainerScan.cxx | |
parent | 72c96052b4f4c18959fe0fb374bc8c17cb9c19fe (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/ContainerScan.cxx')
-rw-r--r-- | test/ContainerScan.cxx | 4 |
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(); |