diff options
author | Max Kellermann <max@duempel.org> | 2009-11-10 19:01:38 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-11-14 00:47:22 +0100 |
commit | 719990b1c5db93ccdc21e5f91e98ed9e8540ade1 (patch) | |
tree | ef03f58f54767b73c4c8d267e7b0008938863a17 /src/decoder/sidplay_plugin.cxx | |
parent | f47bb8c1db91b50be95c4d5dd301728e38c57274 (diff) | |
download | mpd-719990b1c5db93ccdc21e5f91e98ed9e8540ade1.tar.gz mpd-719990b1c5db93ccdc21e5f91e98ed9e8540ade1.tar.xz mpd-719990b1c5db93ccdc21e5f91e98ed9e8540ade1.zip |
decoder: use audio_format_init_checked()
Let the audio_check library verify the audio format in all (relevant,
i.e. non-hardcoded) plugins.
Diffstat (limited to 'src/decoder/sidplay_plugin.cxx')
-rw-r--r-- | src/decoder/sidplay_plugin.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/decoder/sidplay_plugin.cxx b/src/decoder/sidplay_plugin.cxx index b200eee3b..b6e557e08 100644 --- a/src/decoder/sidplay_plugin.cxx +++ b/src/decoder/sidplay_plugin.cxx @@ -278,6 +278,7 @@ sidplay_file_decode(struct decoder *decoder, const char *path_fs) struct audio_format audio_format; audio_format_init(&audio_format, 48000, 16, 2); + assert(audio_format_valid(&audio_format)); decoder_initialized(decoder, &audio_format, true, (float)song_len); |