Commit 6de08814 authored by Max Kellermann's avatar Max Kellermann

lib/xiph/OggVisitor: invoke OnOggPacket() with the "E_O_S" packet

The "end of stream" packet is not special; it contains normal data, and thus we should pass it to OnOggPacket(). This fixes one part of https://github.com/MusicPlayerDaemon/MPD/issues/601
parent 86d05346
ver 0.21.12 (not yet released) ver 0.21.12 (not yet released)
* decoder * decoder
- opus: ignore case in replay gain tag names - opus: ignore case in replay gain tag names
- opus, vorbis: decode the "end of stream" packet
* Windows * Windows
- support backslash in relative URIs loaded from playlists - support backslash in relative URIs loaded from playlists
......
...@@ -69,12 +69,12 @@ OggVisitor::HandlePacket(const ogg_packet &packet) ...@@ -69,12 +69,12 @@ OggVisitor::HandlePacket(const ogg_packet &packet)
/* fail if BOS is missing */ /* fail if BOS is missing */
throw std::runtime_error("BOS packet expected"); throw std::runtime_error("BOS packet expected");
OnOggPacket(packet);
if (packet.e_o_s) { if (packet.e_o_s) {
EndStream(); EndStream();
return; return;
} }
OnOggPacket(packet);
} }
inline void inline void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment