aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-08 01:19:18 +0100
committerMax Kellermann <max@duempel.org>2013-01-08 01:19:18 +0100
commitcdaf504ab8a296c0fb71cd035ed489cdfdea2ae5 (patch)
tree2180574c02103bb064934459c054ad818da8a4d4 /src
parent9fb5aad1576920dc17481591e737b74b2f4ab12f (diff)
downloadmpd-cdaf504ab8a296c0fb71cd035ed489cdfdea2ae5.tar.gz
mpd-cdaf504ab8a296c0fb71cd035ed489cdfdea2ae5.tar.xz
mpd-cdaf504ab8a296c0fb71cd035ed489cdfdea2ae5.zip
decoder/Opus: make internal methods inline
Diffstat (limited to '')
-rw-r--r--src/decoder/OpusDecoderPlugin.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/decoder/OpusDecoderPlugin.cxx b/src/decoder/OpusDecoderPlugin.cxx
index 827285775..b3ad34ca1 100644
--- a/src/decoder/OpusDecoderPlugin.cxx
+++ b/src/decoder/OpusDecoderPlugin.cxx
@@ -102,7 +102,7 @@ MPDOpusDecoder::~MPDOpusDecoder()
ogg_stream_clear(&os);
}
-enum decoder_command
+inline enum decoder_command
MPDOpusDecoder::HandlePage(ogg_page &page)
{
const auto page_serialno = ogg_page_serialno(&page);
@@ -124,7 +124,7 @@ MPDOpusDecoder::HandlePage(ogg_page &page)
return DECODE_COMMAND_NONE;
}
-enum decoder_command
+inline enum decoder_command
MPDOpusDecoder::HandlePacket(const ogg_packet &packet)
{
if (packet.e_o_s)
@@ -141,7 +141,7 @@ MPDOpusDecoder::HandlePacket(const ogg_packet &packet)
return HandleAudio(packet);
}
-enum decoder_command
+inline enum decoder_command
MPDOpusDecoder::HandleBOS(const ogg_packet &packet)
{
assert(packet.b_o_s);
@@ -189,7 +189,7 @@ MPDOpusDecoder::HandleBOS(const ogg_packet &packet)
return decoder_get_command(decoder);
}
-enum decoder_command
+inline enum decoder_command
MPDOpusDecoder::HandleTags(const ogg_packet &packet)
{
struct tag *tag = tag_new();
@@ -205,7 +205,7 @@ MPDOpusDecoder::HandleTags(const ogg_packet &packet)
return cmd;
}
-enum decoder_command
+inline enum decoder_command
MPDOpusDecoder::HandleAudio(const ogg_packet &packet)
{
assert(opus_decoder != nullptr);