That way the caller can use it for whatever purpose.
\brief add an element to index in the Meta Seek data
\note the element should already be written in the file
*/
- void IndexThis(const EbmlElement & aElt, const KaxSegment & ParentSegment);
+ KaxSeek * IndexThis(const EbmlElement & aElt, const KaxSegment & ParentSegment);
KaxSeek * FindFirstOf(const EbmlCallbacks & Callbacks) const;
KaxSeek * FindNextOf(const KaxSeek &aPrev) const;
/*!
\todo verify that the element is not already in the list
*/
-void KaxSeekHead::IndexThis(const EbmlElement & aElt, const KaxSegment & ParentSegment)
+KaxSeek * KaxSeekHead::IndexThis(const EbmlElement & aElt, const KaxSegment & ParentSegment)
{
// create a new point
auto & aNewPoint = AddNewChild<KaxSeek>(*this);
binary ID[4];
((const EbmlId&)aElt).Fill(ID);
aNewID.CopyBuffer(ID, EBML_ID_LENGTH((const EbmlId&)aElt));
+
+ return &aNewPoint;
}
KaxSeek * KaxSeekHead::FindFirstOf(const EbmlCallbacks & Callbacks) const