DecoderAPI: pass rvalue reference to decoder_tag()

Avoid duplicating the tag.
This commit is contained in:
Max Kellermann
2013-07-31 00:34:22 +02:00
parent 06f898cc12
commit cbd38327e7
9 changed files with 13 additions and 14 deletions

View File

@@ -158,7 +158,7 @@ vorbis_send_comments(struct decoder *decoder, struct input_stream *is,
if (!tag)
return;
decoder_tag(decoder, is, tag);
decoder_tag(decoder, is, std::move(*tag));
delete tag;
}