Avoid copying fields when making Vorbis comment
This commit is contained in:
parent
4e80c31e98
commit
41ddccb455
|
@ -276,7 +276,7 @@ void VorbisComment::make(std::ostream &stream, VorbisCommentFlags flags, Diagnos
|
|||
writer.writeUInt32LE(0);
|
||||
// write fields
|
||||
std::uint32_t fieldsWritten = 0;
|
||||
for (auto i : fields()) {
|
||||
for (auto &i : fields()) {
|
||||
VorbisCommentField &field = i.second;
|
||||
if (!field.value().isEmpty()) {
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue