decoder_list: fix decoder_plugin_from_mime_type()

Copy'n'paste error: call decoder_plugin_supports_mime_type() instead
of decoder_plugin_supports_suffix().
This commit is contained in:
Max Kellermann 2009-11-09 22:49:05 +01:00
parent 54033c74e4
commit 6975c087e0

View File

@ -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;
}