diff options
author | Max Kellermann <max@duempel.org> | 2014-02-07 18:52:19 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-07 18:52:19 +0100 |
commit | 6b421cc354cb0c297fcf99d7824b99b61caec99d (patch) | |
tree | e41f9fd76e3850da2716ab3dfd4fa08025f351f3 /src/db/update/Container.cxx | |
parent | 37ec29b225095e9c02b974134e056f8ba1a8678c (diff) | |
download | mpd-6b421cc354cb0c297fcf99d7824b99b61caec99d.tar.gz mpd-6b421cc354cb0c297fcf99d7824b99b61caec99d.tar.xz mpd-6b421cc354cb0c297fcf99d7824b99b61caec99d.zip |
DecoderPlugin: pass Path instance to file_decode() and scan_file()
Diffstat (limited to 'src/db/update/Container.cxx')
-rw-r--r-- | src/db/update/Container.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/update/Container.cxx b/src/db/update/Container.cxx index 0a3f7f2f8..97cff332f 100644 --- a/src/db/update/Container.cxx +++ b/src/db/update/Container.cxx @@ -99,7 +99,7 @@ UpdateWalk::UpdateContainerFile(Directory &directory, char *vtrack; unsigned int tnum = 0; TagBuilder tag_builder; - while ((vtrack = plugin.container_scan(pathname.c_str(), ++tnum)) != nullptr) { + while ((vtrack = plugin.container_scan(pathname, ++tnum)) != nullptr) { Song *song = Song::NewFile(vtrack, *contdir); // shouldn't be necessary but it's there.. @@ -107,7 +107,7 @@ UpdateWalk::UpdateContainerFile(Directory &directory, const auto child_path_fs = AllocatedPath::Build(pathname, vtrack); - plugin.ScanFile(child_path_fs.c_str(), + plugin.ScanFile(child_path_fs, add_tag_handler, &tag_builder); tag_builder.Commit(song->tag); |