]> granicus.if.org Git - taglib/commitdiff
Update the ID3v1 location when stripping the ID3v2 tag.
authorScott Wheeler <wheeler@kde.org>
Mon, 26 Jul 2004 01:49:18 +0000 (01:49 +0000)
committerScott Wheeler <wheeler@kde.org>
Mon, 26 Jul 2004 01:49:18 +0000 (01:49 +0000)
CCMAIL:83926-done@bugs.kde.org

git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@332780 283d02a7-25f6-0310-bc7c-ecb5cbfe19da

mpeg/mpegfile.cpp

index 2f13e6053701c5ba37cc5a35a2e47744d03f855c..3c89ce3888e033c389d5c62f6f60ba1ab334d6ed 100644 (file)
@@ -345,6 +345,10 @@ bool MPEG::File::strip(int tags)
     d->hasID3v2 = false;
     delete d->ID3v2Tag;
     d->ID3v2Tag = 0;
+
+    // v1 tag location has changed, update if it exists
+    if(d->ID3v1Tag)
+      d->ID3v1Location = findID3v1();
   }
 
   if(tags & ID3v1 && d->hasID3v1) {