diff --git a/src/plugins/server/Transcoder.cpp b/src/plugins/server/Transcoder.cpp index 618bfd7b3..91c823b0b 100644 --- a/src/plugins/server/Transcoder.cpp +++ b/src/plugins/server/Transcoder.cpp @@ -103,15 +103,13 @@ static std::string cachePath(Context& context) { if (!fs::exists(fsPath)) { fs::create_directories(fsPath); } - return path; } static void iterateTranscodeCache(Context& context, std::function cb) { if (cb) { fs::directory_iterator end; - fs::directory_iterator file(cachePath(context)); - + fs::directory_iterator file(fs::u8path(cachePath(context))); while (file != end) { if (!is_directory(file->status())) { cb(file->path());