Commit 7f1130b5 authored by Max Kellermann's avatar Max Kellermann

DecoderList: fix the decoder_plugin_from_mime_type() return value

parent 2d696f46
...@@ -180,11 +180,9 @@ decoder_plugin_from_mime_type(const char *mimeType, unsigned int next) ...@@ -180,11 +180,9 @@ decoder_plugin_from_mime_type(const char *mimeType, unsigned int next)
const struct DecoderPlugin * const struct DecoderPlugin *
decoder_plugin_from_name(const char *name) decoder_plugin_from_name(const char *name)
{ {
decoder_plugins_find([=](const DecoderPlugin &plugin){ return decoder_plugins_find([=](const DecoderPlugin &plugin){
return strcmp(plugin.name, name) == 0; return strcmp(plugin.name, name) == 0;
}); });
return nullptr;
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment