]> granicus.if.org Git - taglib/commitdiff
Patch from Umesh Shankar to make sure that the frameID is current.
authorScott Wheeler <wheeler@kde.org>
Tue, 17 May 2005 22:38:01 +0000 (22:38 +0000)
committerScott Wheeler <wheeler@kde.org>
Tue, 17 May 2005 22:38:01 +0000 (22:38 +0000)
CCMAIL:Umesh Shankar <ushankar@cs.berkeley.edu>

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

mpeg/id3v2/id3v2framefactory.cpp

index 3fc976a5c2dea2d161c5b5fda2011e5aa01891d6..1d695d08752d698a2ca1170d9b8edf18396aa0e9 100644 (file)
@@ -103,6 +103,10 @@ Frame *FrameFactory::createFrame(const ByteVector &data, uint version) const
     return 0;
   }
 
+  // updateFrame() might have updated the frame ID.
+
+  frameID = header->frameID();
+
   // This is where things get necissarily nasty.  Here we determine which
   // Frame subclass (or if none is found simply an Frame) based
   // on the frame ID.  Since there are a lot of possibilities, that means