decoder/DecoderPlugin: container_scan() returns forward_list<DetachedSong>
Speed up container_scan() again, by eliminating the need to call scan_file() for each item.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user