]> granicus.if.org Git - taglib/commit
Don't duplicate from ID3v1 to ID3v2 when saving only ID3v2
authorRobin Stocker <robin@nibor.org>
Sun, 10 Jun 2012 16:47:13 +0000 (18:47 +0200)
committerRobin Stocker <robin@nibor.org>
Sun, 10 Jun 2012 16:53:25 +0000 (18:53 +0200)
commit7279b4fb7b30e82a539615869185ff24ebba885c
tree7d779ca92f4dd41e675dcfa4e0136070953fbfb1
parent2c2a4863132c2c041df0b2adab471e0731f2dd26
Don't duplicate from ID3v1 to ID3v2 when saving only ID3v2

When saving only v2 with stripOthers (which means stripping v1), the
data from v1 would still be duplicated to v2. Likewise for the other way
around.

This is not the expected outcome when e.g. a frame was removed in v2,
because it would be added again on save from the v1 data. The test shows
that.

This changes save to only duplicate the data when the other tag type
will not be stripped.
taglib/mpeg/mpegfile.cpp
tests/test_id3v2.cpp