From: Scott Wheeler Date: Mon, 26 Jul 2004 01:49:18 +0000 (+0000) Subject: Update the ID3v1 location when stripping the ID3v2 tag. X-Git-Tag: v1.5~357 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d257ddfd02962d0f1bf38bf958147682d30048ba;p=taglib Update the ID3v1 location when stripping the ID3v2 tag. CCMAIL:83926-done@bugs.kde.org git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@332780 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- diff --git a/mpeg/mpegfile.cpp b/mpeg/mpegfile.cpp index 2f13e605..3c89ce38 100644 --- a/mpeg/mpegfile.cpp +++ b/mpeg/mpegfile.cpp @@ -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) {