aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/OpusDecoderPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-08 19:42:04 +0100
committerMax Kellermann <max@duempel.org>2014-01-08 19:49:08 +0100
commitbc23a6bb05705d5551117528dfcbfcfedfee4c90 (patch)
tree2283d2440ffa1bf6313c41ecaa59808032390769 /src/decoder/OpusDecoderPlugin.cxx
parentac1983eae32caa7c6f10ec4bab32a9657bdb2668 (diff)
downloadmpd-bc23a6bb05705d5551117528dfcbfcfedfee4c90.tar.gz
mpd-bc23a6bb05705d5551117528dfcbfcfedfee4c90.tar.xz
mpd-bc23a6bb05705d5551117528dfcbfcfedfee4c90.zip
tag/TagBuilder: overload Commit() returning a Tag object
Diffstat (limited to '')
-rw-r--r--src/decoder/OpusDecoderPlugin.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/decoder/OpusDecoderPlugin.cxx b/src/decoder/OpusDecoderPlugin.cxx
index 201d61d96..04f549f4f 100644
--- a/src/decoder/OpusDecoderPlugin.cxx
+++ b/src/decoder/OpusDecoderPlugin.cxx
@@ -292,8 +292,7 @@ MPDOpusDecoder::HandleTags(const ogg_packet &packet)
!tag_builder.IsEmpty()) {
decoder_replay_gain(decoder, &rgi);
- Tag tag;
- tag_builder.Commit(tag);
+ Tag tag = tag_builder.Commit();
cmd = decoder_tag(decoder, input_stream, std::move(tag));
} else
cmd = decoder_get_command(decoder);