decoder/ogg: ignore the BOS packet after seek to the beginning of song

Previously, MPD would skip the current song after attempting to seek
to its beginnig, because that was a seek to offset 0.  At offset 0,
MPD will see the BOS packet again, which results in throwing
StopDecoder in MPDOpusDecoder::OnOggEnd().

Closes https://github.com/MusicPlayerDaemon/MPD/issues/470
This commit is contained in:
Max Kellermann
2019-03-17 23:14:59 +01:00
parent b76d78e6ae
commit 6d12c22653
3 changed files with 18 additions and 0 deletions

1
NEWS
View File

@@ -7,6 +7,7 @@ ver 0.21.6 (not yet released)
- cdio_paranoia: fix build failure due to missing #include
* decoder
- opus: fix replay gain when there are no other tags
- opus: fix seeking to beginning of song
* output
- pulse: work around error with unusual channel count
- osx: fix build failure