aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_list.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-11-07 15:14:11 +0100
committerMax Kellermann <max@duempel.org>2009-11-07 15:14:11 +0100
commite3da174fca30c493ec311e41ad3dc6795053757d (patch)
tree38b0465a3eb3109c1b763c2a8907639f0cc3066c /src/decoder_list.c
parentbb862a8cebd19f51d8b49888a9bbb5fdd6bd4384 (diff)
downloadmpd-e3da174fca30c493ec311e41ad3dc6795053757d.tar.gz
mpd-e3da174fca30c493ec311e41ad3dc6795053757d.tar.xz
mpd-e3da174fca30c493ec311e41ad3dc6795053757d.zip
decoder_list: moved suffix/mime_type checks to decoder_plugin.c
Diffstat (limited to 'src/decoder_list.c')
-rw-r--r--src/decoder_list.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/decoder_list.c b/src/decoder_list.c
index b447a6ac1..837c5ca7b 100644
--- a/src/decoder_list.c
+++ b/src/decoder_list.c
@@ -119,8 +119,8 @@ decoder_plugin_from_suffix(const char *suffix, unsigned int next)
i = 0;
for (; decoder_plugins[i] != NULL; ++i) {
const struct decoder_plugin *plugin = decoder_plugins[i];
- if (decoder_plugins_enabled[i] && plugin->suffixes != NULL &&
- string_array_contains(plugin->suffixes, suffix)) {
+ if (decoder_plugins_enabled[i] &&
+ decoder_plugin_supports_suffix(plugin, suffix)) {
++i;
return plugin;
}
@@ -141,8 +141,8 @@ decoder_plugin_from_mime_type(const char *mimeType, unsigned int next)
i = 0;
for (; decoder_plugins[i] != NULL; ++i) {
const struct decoder_plugin *plugin = decoder_plugins[i];
- if (decoder_plugins_enabled[i] && plugin->mime_types != NULL &&
- string_array_contains(plugin->mime_types, mimeType)) {
+ if (decoder_plugins_enabled[i] &&
+ decoder_plugin_supports_suffix(plugin, mimeType)) {
++i;
return plugin;
}