From df4db509047766235063f98f0ddd61cbf221fea5 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 29 Dec 2013 16:18:33 +0100 Subject: DecoderList: add function decoder_plugins_supports_suffix() Replaces decoder_plugin_from_suffix(). --- src/UpdateSong.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/UpdateSong.cxx') diff --git a/src/UpdateSong.cxx b/src/UpdateSong.cxx index 4101d6231..dc49c7a84 100644 --- a/src/UpdateSong.cxx +++ b/src/UpdateSong.cxx @@ -105,9 +105,7 @@ update_song_file(Directory &directory, const char *name, const char *suffix, const struct stat *st) { - const struct DecoderPlugin *plugin = - decoder_plugin_from_suffix(suffix, nullptr); - if (plugin == nullptr) + if (!decoder_plugins_supports_suffix(suffix)) return false; update_song_file2(directory, name, st, suffix); -- cgit v1.2.3