Commit ef5090c3 authored by Max Kellermann's avatar Max Kellermann

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

parent cf073de3
...@@ -106,8 +106,11 @@ UpdateWalk::UpdateContainerFile(Directory &directory, ...@@ -106,8 +106,11 @@ UpdateWalk::UpdateContainerFile(Directory &directory,
// shouldn't be necessary but it's there.. // shouldn't be necessary but it's there..
song->mtime = info.mtime; song->mtime = info.mtime;
const auto vtrack_fs = AllocatedPath::FromUTF8(vtrack);
// TODO: check vtrack_fs.IsNull()
const auto child_path_fs = AllocatedPath::Build(pathname, const auto child_path_fs = AllocatedPath::Build(pathname,
vtrack); vtrack_fs);
plugin.ScanFile(child_path_fs, plugin.ScanFile(child_path_fs,
add_tag_handler, &tag_builder); add_tag_handler, &tag_builder);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment