aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-11-09 22:49:05 +0100
committerMax Kellermann <max@duempel.org>2009-11-09 22:49:05 +0100
commit6975c087e069bd19cf4838836c1ef350480bb8dd (patch)
tree83831330875b2cdee8a691a1db25647dbbc786b1
parent54033c74e4393f2d6650539dc41dde7cecffc7a8 (diff)
downloadmpd-6975c087e069bd19cf4838836c1ef350480bb8dd.tar.gz
mpd-6975c087e069bd19cf4838836c1ef350480bb8dd.tar.xz
mpd-6975c087e069bd19cf4838836c1ef350480bb8dd.zip
decoder_list: fix decoder_plugin_from_mime_type()
Copy'n'paste error: call decoder_plugin_supports_mime_type() instead of decoder_plugin_supports_suffix().
-rw-r--r--src/decoder_list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder_list.c b/src/decoder_list.c
index 7ac9b5b3a..2ee4f3ec9 100644
--- a/src/decoder_list.c
+++ b/src/decoder_list.c
@@ -157,7 +157,7 @@ decoder_plugin_from_mime_type(const char *mimeType, unsigned int next)
for (; decoder_plugins[i] != NULL; ++i) {
const struct decoder_plugin *plugin = decoder_plugins[i];
if (decoder_plugins_enabled[i] &&
- decoder_plugin_supports_suffix(plugin, mimeType)) {
+ decoder_plugin_supports_mime_type(plugin, mimeType)) {
++i;
return plugin;
}