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/SongUpdate.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/SongUpdate.cxx') diff --git a/src/SongUpdate.cxx b/src/SongUpdate.cxx index 377b2fb7c..1e1bb2ff5 100644 --- a/src/SongUpdate.cxx +++ b/src/SongUpdate.cxx @@ -107,7 +107,6 @@ bool Song::UpdateFileInArchive() { const char *suffix; - const struct DecoderPlugin *plugin; assert(IsFile()); @@ -117,8 +116,7 @@ Song::UpdateFileInArchive() if (suffix == nullptr) return false; - plugin = decoder_plugin_from_suffix(suffix, nullptr); - if (plugin == nullptr) + if (!decoder_plugins_supports_suffix(suffix)) return false; delete tag; -- cgit v1.2.3