Hi! Is it possible to add the switcher that switches off id3v2-to-xiph tags synchronization when saving flac files?<br>Right now the corresponding section of bool FLAC::File::save() method looks like<br><br>bool FLAC::File::save()<br>
{<br>  if(readOnly()) {<br>    debug("FLAC::File::save() - Cannot save to a read only file.");<br>    return false;<br>  }<br><br>  if(!isValid()) {<br>    debug("FLAC::File::save() -- Trying to save invalid file.");<br>
    return false;<br>  }<br><br>  // Create new vorbis comments<br>  <b>Tag::duplicate(&d->tag, xiphComment(true), false);</b> // <-- This line<br><br>  d->xiphCommentData = xiphComment()->render(false);<br>
<br>  // Replace metadata blocks<br><br>  bool foundVorbisCommentBlock = false;<br>...<br><br><br>Because of the line <b>Tag::duplicate(&d->tag, xiphComment(true), false);</b> I cannot write TRACKNUMBER field as f.e. "/15" (that is no track number, total tracks = 15).<br>
I understand that this case is very rare but this format is supported by many taggers.<br><br>In my custom version of TagLib I added a flag <i>bool synchronizeTags</i> and changed FLAC::File interface this way:<br><br>virtual bool FLAC::File::save()<br>
{<br>    save(true);<br>}<br><br>bool FLAC::File::save(bool synchronizeTags)<br>{<br>  if(readOnly()) {<br>    debug("FLAC::File::save() - Cannot save to a read only file.");<br>    return false;<br>  }<br><br>  if(!isValid()) {<br>
    debug("FLAC::File::save() -- Trying to save invalid file.");<br>    return false;<br>  }<br><br>  // Create new vorbis comments<br> <b> if (synchronizeTags)</b>  // <-- This line<br>    <b>Tag::duplicate(&d->tag, xiphComment(true), false);</b> <br>
<br>  d->xiphCommentData = xiphComment()->render(false);<br><br>  // Replace metadata blocks<br><br>  bool foundVorbisCommentBlock = false;<br>...<br><br><br>The default behaviour remained intact. Is it possible to add my changes to the TagLib 1.8 release?<br>
<br>Best regards<br>Alex<br>