libmatroska: give access to the SetParent to KaxSimpleBlock as well

git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/libmatroska@336 a6f86f6d-0131-4f8e-9e7b-e335508773d5
This commit is contained in:
Steve Lhomme 2010-06-24 16:21:14 +00:00
parent b4cdac7827
commit 0f82b00c63
3 changed files with 1461 additions and 1456 deletions

View File

@ -2,7 +2,7 @@ Include "*/*.proj"
LIB matroska
{
PROJECT_VERSION 1.0.0
PROJECT_VERSION 1.1.0
INCLUDE .
EXPINCLUDE .

View File

@ -288,6 +288,7 @@ class MATROSKA_DLL_API KaxSimpleBlock : public KaxInternalBlock {
bool IsDiscardable() const { return bIsDiscardable; }
operator KaxInternalBlock &() { return *this; }
void SetParent(KaxCluster & aParentCluster);
EBML_CONCRETE_CLASS(KaxSimpleBlock)
};

View File

@ -900,6 +900,10 @@ void KaxBlockGroup::SetParent(KaxCluster & aParentCluster) {
theBlock.SetParent( aParentCluster );
}
void KaxSimpleBlock::SetParent(KaxCluster & aParentCluster) {
KaxInternalBlock::SetParent( aParentCluster );
}
void KaxInternalBlock::SetParent(KaxCluster & aParentCluster)
{
ParentCluster = &aParentCluster;