diff options
author | Max Kellermann <max@duempel.org> | 2013-07-31 00:34:22 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-07-31 00:34:22 +0200 |
commit | cbd38327e7f6948647768227ac4836f64e5ccd51 (patch) | |
tree | 03510bbcb68e22a76d261089c97a851a0e6596c3 /src/decoder/OpusDecoderPlugin.cxx | |
parent | 06f898cc1240a29b293de0e97ad95a4fdc971254 (diff) | |
download | mpd-cbd38327e7f6948647768227ac4836f64e5ccd51.tar.gz mpd-cbd38327e7f6948647768227ac4836f64e5ccd51.tar.xz mpd-cbd38327e7f6948647768227ac4836f64e5ccd51.zip |
DecoderAPI: pass rvalue reference to decoder_tag()
Avoid duplicating the tag.
Diffstat (limited to '')
-rw-r--r-- | src/decoder/OpusDecoderPlugin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder/OpusDecoderPlugin.cxx b/src/decoder/OpusDecoderPlugin.cxx index 148125347..08c67b570 100644 --- a/src/decoder/OpusDecoderPlugin.cxx +++ b/src/decoder/OpusDecoderPlugin.cxx @@ -228,7 +228,7 @@ MPDOpusDecoder::HandleTags(const ogg_packet &packet) if (ScanOpusTags(packet.packet, packet.bytes, &add_tag_handler, &tag) && !tag.IsEmpty()) - cmd = decoder_tag(decoder, input_stream, &tag); + cmd = decoder_tag(decoder, input_stream, std::move(tag)); else cmd = decoder_get_command(decoder); |