diff options
Diffstat (limited to 'src/SongUpdate.cxx')
-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; |