diff options
author | Max Kellermann <max@musicpd.org> | 2019-08-03 08:09:45 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-08-03 08:25:48 +0200 |
commit | 9b99a9897a96cbc7e7c3697d5c3c4e70ffcf0047 (patch) | |
tree | 7246ffd39474c604c0e8b034fa834193f8b7bb64 /src/decoder | |
parent | 4f56fdc3970047943571147d4fa320db6e900840 (diff) |
decoder/mad: don't count the Xing/LAME metadata frame
The Xing/LAME frame indicates how many frames there are, but that
excludes the initial Xing/LAME frame. Therefore, it should not be
counted.
This fixes an off-by-one bug which caused the last frame to be
skipped, fixing one part of
https://github.com/MusicPlayerDaemon/MPD/issues/601
Diffstat (limited to 'src/decoder')
-rw-r--r-- | src/decoder/plugins/MadDecoderPlugin.cxx | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/decoder/plugins/MadDecoderPlugin.cxx b/src/decoder/plugins/MadDecoderPlugin.cxx index 7b3675e37..33a9be644 100644 --- a/src/decoder/plugins/MadDecoderPlugin.cxx +++ b/src/decoder/plugins/MadDecoderPlugin.cxx @@ -905,7 +905,6 @@ MadDecoder::Read() noexcept case MadDecoderMuteFrame::SKIP: mute_frame = MadDecoderMuteFrame::NONE; - UpdateTimerNextFrame(); break; case MadDecoderMuteFrame::SEEK: if (elapsed_time >= seek_time) |