]> granicus.if.org Git - taglib/commitdiff
Fixes #743 by not overwriting existing Xiph comment in FLAC::File::save
authorMichael Helmling <michaelhelmling@posteo.de>
Sun, 27 Nov 2016 18:17:13 +0000 (19:17 +0100)
committerMichael Helmling <michaelhelmling@posteo.de>
Sun, 27 Nov 2016 18:17:13 +0000 (19:17 +0100)
taglib/flac/flacfile.cpp

index b31cc65e07385b1dfcb662db0dd68a26567f991f..dba54d58ff0b78b84fed2a0bcc65f6baf36beb0a 100644 (file)
@@ -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);