mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 20:13:36 +00:00
Fixed case sensitivty issue in FfmpegDecoderFactory::CanHandle().
This commit is contained in:
parent
9ff959536d
commit
aefb02ba3c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user