From 2786aa7463700aeefa358cbbfeccb9ff4839eadd Mon Sep 17 00:00:00 2001 From: Michael Helmling Date: Sun, 27 Nov 2016 19:17:13 +0100 Subject: [PATCH] Fixes #743 by not overwriting existing Xiph comment in FLAC::File::save --- taglib/flac/flacfile.cpp | 5 +++-- 1 file 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);