aboutsummaryrefslogtreecommitdiffstats
path: root/taglib/flac
diff options
context:
space:
mode:
authorMichael Helmling <michaelhelmling@posteo.de>2016-11-27 19:17:13 +0100
committerMichael Helmling <michaelhelmling@posteo.de>2016-11-27 19:17:13 +0100
commit2786aa7463700aeefa358cbbfeccb9ff4839eadd (patch)
treed86ebae557b213e53b8bef3b30b879cd86dcc39a /taglib/flac
parentd3062f3af4c4c0274ee7e886ece333a71814021b (diff)
Fixes #743 by not overwriting existing Xiph comment in FLAC::File::save
Diffstat (limited to 'taglib/flac')
-rw-r--r--taglib/flac/flacfile.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/taglib/flac/flacfile.cpp b/taglib/flac/flacfile.cpp
index b31cc65e..dba54d58 100644
--- a/taglib/flac/flacfile.cpp
+++ b/taglib/flac/flacfile.cpp
@@ -168,8 +168,9 @@ bool FLAC::File::save()
}
// Create new vorbis comments
-
- Tag::duplicate(&d->tag, xiphComment(true), false);
+ if (!hasXiphComment())
+ Tag::duplicate(&d->tag, xiphComment(true), false);
+
d->xiphCommentData = xiphComment()->render(false);