From 6b421cc354cb0c297fcf99d7824b99b61caec99d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 7 Feb 2014 18:52:19 +0100 Subject: DecoderPlugin: pass Path instance to file_decode() and scan_file() --- src/db/update/Container.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/db/update/Container.cxx') 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); -- cgit v1.2.3