decoder/opus: move code to HandleEOS()
This commit is contained in:
parent
23465ad985
commit
ba6f2b0467
@ -100,6 +100,7 @@ public:
|
|||||||
DecoderCommand HandlePackets();
|
DecoderCommand HandlePackets();
|
||||||
DecoderCommand HandlePacket(const ogg_packet &packet);
|
DecoderCommand HandlePacket(const ogg_packet &packet);
|
||||||
DecoderCommand HandleBOS(const ogg_packet &packet);
|
DecoderCommand HandleBOS(const ogg_packet &packet);
|
||||||
|
DecoderCommand HandleEOS();
|
||||||
DecoderCommand HandleTags(const ogg_packet &packet);
|
DecoderCommand HandleTags(const ogg_packet &packet);
|
||||||
DecoderCommand HandleAudio(const ogg_packet &packet);
|
DecoderCommand HandleAudio(const ogg_packet &packet);
|
||||||
|
|
||||||
@ -163,7 +164,7 @@ inline DecoderCommand
|
|||||||
MPDOpusDecoder::HandlePacket(const ogg_packet &packet)
|
MPDOpusDecoder::HandlePacket(const ogg_packet &packet)
|
||||||
{
|
{
|
||||||
if (packet.e_o_s)
|
if (packet.e_o_s)
|
||||||
return DecoderCommand::STOP;
|
return HandleEOS();
|
||||||
|
|
||||||
if (packet.b_o_s)
|
if (packet.b_o_s)
|
||||||
return HandleBOS(packet);
|
return HandleBOS(packet);
|
||||||
@ -279,6 +280,12 @@ MPDOpusDecoder::HandleBOS(const ogg_packet &packet)
|
|||||||
return decoder_get_command(decoder);
|
return decoder_get_command(decoder);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline DecoderCommand
|
||||||
|
MPDOpusDecoder::HandleEOS()
|
||||||
|
{
|
||||||
|
return DecoderCommand::STOP;
|
||||||
|
}
|
||||||
|
|
||||||
inline DecoderCommand
|
inline DecoderCommand
|
||||||
MPDOpusDecoder::HandleTags(const ogg_packet &packet)
|
MPDOpusDecoder::HandleTags(const ogg_packet &packet)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user