db/update/Container: convert vtrack name to FS charset

This commit is contained in:
Max Kellermann 2015-03-03 13:20:39 +01:00
parent cf073de36c
commit ef5090c397

View File

@ -106,8 +106,11 @@ UpdateWalk::UpdateContainerFile(Directory &directory,
// shouldn't be necessary but it's there..
song->mtime = info.mtime;
const auto vtrack_fs = AllocatedPath::FromUTF8(vtrack);
// TODO: check vtrack_fs.IsNull()
const auto child_path_fs = AllocatedPath::Build(pathname,
vtrack);
vtrack_fs);
plugin.ScanFile(child_path_fs,
add_tag_handler, &tag_builder);