Merge tag 'v0.21.12'
release v0.21.12
This commit is contained in:
@@ -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
|
||||
|
@@ -67,8 +67,21 @@ private:
|
||||
void HandlePackets();
|
||||
|
||||
protected:
|
||||
/**
|
||||
* Called when the "beginning of stream" packet has been seen.
|
||||
*
|
||||
* @param packet the "beginning of stream" packet
|
||||
*/
|
||||
virtual void OnOggBeginning(const ogg_packet &packet) = 0;
|
||||
|
||||
/**
|
||||
* Called for each follow-up packet.
|
||||
*/
|
||||
virtual void OnOggPacket(const ogg_packet &packet) = 0;
|
||||
|
||||
/**
|
||||
* Called after the "end of stream" packet has been processed.
|
||||
*/
|
||||
virtual void OnOggEnd() = 0;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user