aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-06-20 16:06:01 +0200
committerMax Kellermann <max@duempel.org>2015-06-20 16:06:09 +0200
commite4d0293a31f30c01142202ee433cd28115b73343 (patch)
treedafeed11c81e6df30f9b8cb59453759f6513405a /src/decoder
parentae77542a118120adb4b339ad6ec2ec433bf43533 (diff)
downloadmpd-e4d0293a31f30c01142202ee433cd28115b73343.tar.gz
mpd-e4d0293a31f30c01142202ee433cd28115b73343.tar.xz
mpd-e4d0293a31f30c01142202ee433cd28115b73343.zip
DecoderAPI: "move" the Tag object
Reduce runtime overhead.
Diffstat (limited to 'src/decoder')
-rw-r--r--src/decoder/DecoderAPI.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder/DecoderAPI.cxx b/src/decoder/DecoderAPI.cxx
index 4794d60e7..366c4af6d 100644
--- a/src/decoder/DecoderAPI.cxx
+++ b/src/decoder/DecoderAPI.cxx
@@ -566,7 +566,7 @@ decoder_tag(Decoder &decoder, InputStream *is,
/* save the tag */
delete decoder.decoder_tag;
- decoder.decoder_tag = new Tag(tag);
+ decoder.decoder_tag = new Tag(std::move(tag));
/* check for a new stream tag */