From 9cfc47fc82bb4aa1ef4a0639f52b0bfffdb60247 Mon Sep 17 00:00:00 2001 From: emeric Date: Tue, 14 Nov 2023 13:25:17 +0100 Subject: [PATCH] Fixed freebsd build --- src/libs/av/impl/AudioFile.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libs/av/impl/AudioFile.cpp b/src/libs/av/impl/AudioFile.cpp index 346fe074..33372075 100644 --- a/src/libs/av/impl/AudioFile.cpp +++ b/src/libs/av/impl/AudioFile.cpp @@ -28,6 +28,8 @@ extern "C" } #include +#include +#include #include "utils/Logger.hpp" #include "utils/String.hpp" @@ -290,7 +292,8 @@ namespace Av { // List should be sync with the demuxers shipped in the lms's docker version // + the _audioFileExtensions in ScanSettings - static const std::unordered_map entries + // std::filesystem::path does not seem to have std::hash specialization on freebsd + static const std::map entries { {".mp3", "audio/mpeg"}, {".ogg", "audio/ogg"},