diff options
author | Max Kellermann <max@duempel.org> | 2013-12-29 16:18:33 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-12-29 16:59:57 +0100 |
commit | df4db509047766235063f98f0ddd61cbf221fea5 (patch) | |
tree | 15c755558141ec7e0d5945cd8506bf8345c3e2d6 /src/SongUpdate.cxx | |
parent | decc4002a02d07c12b360929dc62b5ffcae37582 (diff) | |
download | mpd-df4db509047766235063f98f0ddd61cbf221fea5.tar.gz mpd-df4db509047766235063f98f0ddd61cbf221fea5.tar.xz mpd-df4db509047766235063f98f0ddd61cbf221fea5.zip |
DecoderList: add function decoder_plugins_supports_suffix()
Replaces decoder_plugin_from_suffix().
Diffstat (limited to '')
-rw-r--r-- | src/SongUpdate.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
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; |