From: Steve Lhomme Date: Mon, 15 Mar 2010 15:57:04 +0000 (+0000) Subject: cast to EbmlId instead of accessing Generic() GlobalId directly X-Git-Tag: release-0.9.0~53 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0bb4f6645afe0e1faf192772dbf93bcd567344c0;p=libmatroska cast to EbmlId instead of accessing Generic() GlobalId directly git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libmatroska@8 a6f86f6d-0131-4f8e-9e7b-e335508773d5 --- diff --git a/src/KaxSeekHead.cpp b/src/KaxSeekHead.cpp index 571a4b9..63efdad 100644 --- a/src/KaxSeekHead.cpp +++ b/src/KaxSeekHead.cpp @@ -90,10 +90,10 @@ void KaxSeekHead::IndexThis(const EbmlElement & aElt, const KaxSegment & ParentS KaxSeekID & aNewID = GetChild(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