aboutsummaryrefslogtreecommitdiffstats
path: root/src/UpdateSong.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/UpdateSong.cxx')
-rw-r--r--src/UpdateSong.cxx4
1 files changed, 1 insertions, 3 deletions
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);