DecoderList: fix the decoder_plugin_from_mime_type() return value

This commit is contained in:
Max Kellermann 2013-10-22 00:59:46 +02:00
parent 2d696f46c3
commit 7f1130b52b

View File

@ -180,11 +180,9 @@ decoder_plugin_from_mime_type(const char *mimeType, unsigned int next)
const struct DecoderPlugin *
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 nullptr;
}
/**