]> granicus.if.org Git - libmatroska/commitdiff
cast to EbmlId instead of accessing Generic() GlobalId directly
authorSteve Lhomme <slhomme@matroska.org>
Mon, 15 Mar 2010 15:57:04 +0000 (15:57 +0000)
committerSteve Lhomme <slhomme@matroska.org>
Mon, 15 Mar 2010 15:57:04 +0000 (15:57 +0000)
git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libmatroska@8 a6f86f6d-0131-4f8e-9e7b-e335508773d5

src/KaxSeekHead.cpp

index 571a4b9c86ed34da48a36d444036110b44ff7de7..63efdadd19d30b37070cb54c043ec2a945460ab0 100644 (file)
@@ -90,10 +90,10 @@ void KaxSeekHead::IndexThis(const EbmlElement & aElt, const KaxSegment & ParentS
 
        KaxSeekID & aNewID = GetChild<KaxSeekID>(aNewPoint);
        binary ID[4];
-       for (int i=aElt.Generic().GlobalId.Length; i>0; i--) {
-               ID[4-i] = (aElt.Generic().GlobalId.Value >> 8*(i-1)) & 0xFF;
+       for (int i=EbmlId(aElt).Length; i>0; i--) {
+               ID[4-i] = (EbmlId(aElt).Value >> 8*(i-1)) & 0xFF;
        }
-       aNewID.CopyBuffer(ID, aElt.Generic().GlobalId.Length);
+       aNewID.CopyBuffer(ID, EbmlId(aElt).Length);
 }
 
 KaxSeek * KaxSeekHead::FindFirstOf(const EbmlCallbacks & Callbacks) const