Commit ba6f2b04 authored by Max Kellermann's avatar Max Kellermann

decoder/opus: move code to HandleEOS()

parent 23465ad9
......@@ -100,6 +100,7 @@ public:
DecoderCommand HandlePackets();
DecoderCommand HandlePacket(const ogg_packet &packet);
DecoderCommand HandleBOS(const ogg_packet &packet);
DecoderCommand HandleEOS();
DecoderCommand HandleTags(const ogg_packet &packet);
DecoderCommand HandleAudio(const ogg_packet &packet);
......@@ -163,7 +164,7 @@ inline DecoderCommand
MPDOpusDecoder::HandlePacket(const ogg_packet &packet)
{
if (packet.e_o_s)
return DecoderCommand::STOP;
return HandleEOS();
if (packet.b_o_s)
return HandleBOS(packet);
......@@ -280,6 +281,12 @@ MPDOpusDecoder::HandleBOS(const ogg_packet &packet)
}
inline DecoderCommand
MPDOpusDecoder::HandleEOS()
{
return DecoderCommand::STOP;
}
inline DecoderCommand
MPDOpusDecoder::HandleTags(const ogg_packet &packet)
{
ReplayGainInfo rgi;
......
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