Find the starting position.
authorAllan Sandfeld Jensen <kde@carewolf.com>
Mon, 23 Aug 2004 20:39:32 +0000 (20:39 +0000)
committerAllan Sandfeld Jensen <kde@carewolf.com>
Mon, 23 Aug 2004 20:39:32 +0000 (20:39 +0000)
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@340210 283d02a7-25f6-0310-bc7c-ecb5cbfe19da

mpc/mpcfile.cpp

index 53022c1e693d739ed55de5003df943b7df9057ea..83f805a23d2958b610873e77b2b58448a8bd5fe7 100644 (file)
@@ -74,6 +74,9 @@ public:
   Properties *properties;
   bool scanned;
 
+  // These indicate whether the file *on disk* has these tags, not if
+  // this data structure does.  This is used in computing offsets.
+
   bool hasAPE;
   bool hasID3v1;
   bool hasID3v2;
@@ -268,6 +271,7 @@ void MPC::File::read(bool readProperties, Properties::ReadStyle /* propertiesSty
   if(d->APELocation >= 0) {
     d->APETag = new APE::Tag(this, d->APELocation);
     d->APESize = d->APETag->footer()->completeTagSize();
+    d->APELocation = d->APELocation + d->APETag->footer()->size() - d->APESize;
     d->hasAPE = true;
   }