From: Allan Sandfeld Jensen Date: Mon, 23 Aug 2004 20:39:32 +0000 (+0000) Subject: Find the starting position. X-Git-Tag: v1.5~330 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e5944a6f4686d3f85deedb1e286510847bd82715;p=taglib Find the starting position. git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@340210 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- diff --git a/mpc/mpcfile.cpp b/mpc/mpcfile.cpp index 53022c1e..83f805a2 100644 --- a/mpc/mpcfile.cpp +++ b/mpc/mpcfile.cpp @@ -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; }