aboutsummaryrefslogtreecommitdiffstats
path: root/src/DecoderList.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-22 00:59:46 +0200
committerMax Kellermann <max@duempel.org>2013-10-22 00:59:55 +0200
commit7f1130b52b3394faa2b1dc01abac76c4cb440840 (patch)
treeeb9e6a19fe7c30689c1660fdcd434baeaccb069c /src/DecoderList.cxx
parent2d696f46c3ba84b0b2925788de99979b861f6eff (diff)
downloadmpd-7f1130b52b3394faa2b1dc01abac76c4cb440840.tar.gz
mpd-7f1130b52b3394faa2b1dc01abac76c4cb440840.tar.xz
mpd-7f1130b52b3394faa2b1dc01abac76c4cb440840.zip
DecoderList: fix the decoder_plugin_from_mime_type() return value
Diffstat (limited to 'src/DecoderList.cxx')
-rw-r--r--src/DecoderList.cxx4
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;
}
/**