diff --git a/src/libs/av/impl/AudioFile.cpp b/src/libs/av/impl/AudioFile.cpp index 33372075..0b62fa14 100644 --- a/src/libs/av/impl/AudioFile.cpp +++ b/src/libs/av/impl/AudioFile.cpp @@ -293,7 +293,7 @@ namespace Av // List should be sync with the demuxers shipped in the lms's docker version // + the _audioFileExtensions in ScanSettings // std::filesystem::path does not seem to have std::hash specialization on freebsd - static const std::map entries + static const std::unordered_map entries { {".mp3", "audio/mpeg"}, {".ogg", "audio/ogg"}, @@ -320,7 +320,7 @@ namespace Av {".mka", "audio/x-matroska"}, }; - auto it{ entries.find(fileExtension) }; + auto it{ entries.find(StringUtils::stringToLower(fileExtension.string())) }; if (it == std::cend(entries)) return "";