From aefb02ba3cf1126acf31d1cb1315eeaf1ee23e11 Mon Sep 17 00:00:00 2001 From: casey langen Date: Sun, 24 May 2020 10:42:28 -0700 Subject: [PATCH] Fixed case sensitivty issue in FfmpegDecoderFactory::CanHandle(). --- src/plugins/ffmpegdecoder/plugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/ffmpegdecoder/plugin.cpp b/src/plugins/ffmpegdecoder/plugin.cpp index ea4ecdb80..300116b42 100644 --- a/src/plugins/ffmpegdecoder/plugin.cpp +++ b/src/plugins/ffmpegdecoder/plugin.cpp @@ -139,14 +139,14 @@ class FfmpegDecoderFactory : public musik::core::sdk::IDecoderFactory { std::string str(type); std::transform(str.begin(), str.end(), str.begin(), tolower); - auto it = typeToCodecId.find(type); + auto it = typeToCodecId.find(str); if (it != typeToCodecId.end()) { if (supported.find(it->second) != supported.end()) { return true; } } - if (supportedTypesWithoutCodec.find(type) != supportedTypesWithoutCodec.end()) { + if (supportedTypesWithoutCodec.find(str) != supportedTypesWithoutCodec.end()) { return true; }