diff options
author | Max Kellermann <max@duempel.org> | 2013-10-22 00:59:46 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-22 00:59:55 +0200 |
commit | 7f1130b52b3394faa2b1dc01abac76c4cb440840 (patch) | |
tree | eb9e6a19fe7c30689c1660fdcd434baeaccb069c | |
parent | 2d696f46c3ba84b0b2925788de99979b861f6eff (diff) | |
download | mpd-7f1130b52b3394faa2b1dc01abac76c4cb440840.tar.gz mpd-7f1130b52b3394faa2b1dc01abac76c4cb440840.tar.xz mpd-7f1130b52b3394faa2b1dc01abac76c4cb440840.zip |
DecoderList: fix the decoder_plugin_from_mime_type() return value
-rw-r--r-- | src/DecoderList.cxx | 4 |
1 files changed, 1 insertions, 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; } /** |