Fix Transcoder not properly using a u8path.

This commit is contained in:
casey langen 2022-12-04 18:55:32 -08:00
parent dd61c104b1
commit 84a3a4ac02

View File

@ -103,15 +103,13 @@ static std::string cachePath(Context& context) {
if (!fs::exists(fsPath)) { if (!fs::exists(fsPath)) {
fs::create_directories(fsPath); fs::create_directories(fsPath);
} }
return path; return path;
} }
static void iterateTranscodeCache(Context& context, std::function<void(fs::path)> cb) { static void iterateTranscodeCache(Context& context, std::function<void(fs::path)> cb) {
if (cb) { if (cb) {
fs::directory_iterator end; fs::directory_iterator end;
fs::directory_iterator file(cachePath(context)); fs::directory_iterator file(fs::u8path(cachePath(context)));
while (file != end) { while (file != end) {
if (!is_directory(file->status())) { if (!is_directory(file->status())) {
cb(file->path()); cb(file->path());