summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-07-12 18:33:27 +0200
committerMax Kellermann <max@musicpd.org>2019-08-02 14:04:08 +0200
commit6de088140b2fb3afe2905ad3ea2e2d0648eb603f (patch)
treef254ad17aca1a3fc6f937bc7506facea900dcb2e /src/lib
parent86d0534638b6854af663b77d7e082ea8c1af76bf (diff)
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
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/xiph/OggVisitor.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/xiph/OggVisitor.cxx b/src/lib/xiph/OggVisitor.cxx
index b975d8d17..04a02469f 100644
--- a/src/lib/xiph/OggVisitor.cxx
+++ b/src/lib/xiph/OggVisitor.cxx
@@ -69,12 +69,12 @@ OggVisitor::HandlePacket(const ogg_packet &packet)
/* fail if BOS is missing */
throw std::runtime_error("BOS packet expected");
+ OnOggPacket(packet);
+
if (packet.e_o_s) {
EndStream();
return;
}
-
- OnOggPacket(packet);
}
inline void