From 7f1130b52b3394faa2b1dc01abac76c4cb440840 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 22 Oct 2013 00:59:46 +0200 Subject: [PATCH] DecoderList: fix the decoder_plugin_from_mime_type() return value --- src/DecoderList.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/DecoderList.cxx b/src/DecoderList.cxx index 2f957d970..834178260 100644 --- a/src/DecoderList.cxx +++ b/src/DecoderList.cxx @@ -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; } /**