diff options
author | Max Kellermann <max@duempel.org> | 2009-11-06 19:50:47 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-11-06 19:50:47 +0100 |
commit | f9218423b90a8effafba323abb088cebba34fb25 (patch) | |
tree | 994e8c48dd6bca294cca60398c49d27b7e4abb54 /src/decoder | |
parent | ba34d48cf093cbfbe9d6e63e7177ba79791c6a4a (diff) | |
download | mpd-f9218423b90a8effafba323abb088cebba34fb25.tar.gz mpd-f9218423b90a8effafba323abb088cebba34fb25.tar.xz mpd-f9218423b90a8effafba323abb088cebba34fb25.zip |
utils: renamed stringFoundInStringArray()
No CamelCase. Use bool instead of int. Make both arguments
mandatory.
Diffstat (limited to '')
-rw-r--r-- | src/decoder_list.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/decoder_list.c b/src/decoder_list.c index d30611e1b..ba8e34a8c 100644 --- a/src/decoder_list.c +++ b/src/decoder_list.c @@ -118,8 +118,8 @@ decoder_plugin_from_suffix(const char *suffix, unsigned int next) i = 0; for (; i < num_decoder_plugins; ++i) { const struct decoder_plugin *plugin = decoder_plugins[i]; - if (decoder_plugins_enabled[i] && - stringFoundInStringArray(plugin->suffixes, suffix)) { + if (decoder_plugins_enabled[i] && plugin->suffixes != NULL && + string_array_contains(plugin->suffixes, suffix)) { ++i; return plugin; } @@ -140,8 +140,8 @@ decoder_plugin_from_mime_type(const char *mimeType, unsigned int next) i = 0; for (; i < num_decoder_plugins; ++i) { const struct decoder_plugin *plugin = decoder_plugins[i]; - if (decoder_plugins_enabled[i] && - stringFoundInStringArray(plugin->mime_types, mimeType)) { + if (decoder_plugins_enabled[i] && plugin->mime_types != NULL && + string_array_contains(plugin->mime_types, mimeType)) { ++i; return plugin; } |