aboutsummaryrefslogtreecommitdiffstats
path: root/src/UpdateSong.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-12-29 16:18:33 +0100
committerMax Kellermann <max@duempel.org>2013-12-29 16:59:57 +0100
commitdf4db509047766235063f98f0ddd61cbf221fea5 (patch)
tree15c755558141ec7e0d5945cd8506bf8345c3e2d6 /src/UpdateSong.cxx
parentdecc4002a02d07c12b360929dc62b5ffcae37582 (diff)
downloadmpd-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 '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);