From: Moritz Bunkus Date: Mon, 22 Jun 2020 09:53:07 +0000 (+0200) Subject: KaxBlockData: make SetReferencedTimecode public X-Git-Tag: release-1.6.0~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=51087f3662ed2f01c23e69c5133152f872fe11cb;p=libmatroska KaxBlockData: make SetReferencedTimecode public That allows the caller to simply set the value without having to keep the KaxBlockBlob/KaxBlockGroup objects around. --- diff --git a/matroska/KaxBlockData.h b/matroska/KaxBlockData.h index 151ff45..bd54784 100644 --- a/matroska/KaxBlockData.h +++ b/matroska/KaxBlockData.h @@ -59,11 +59,11 @@ DECLARE_MKX_SINTEGER_CONS(KaxReferenceBlock) void SetReferencedBlock(const KaxBlockBlob * aRefdBlock); void SetReferencedBlock(const KaxBlockGroup & aRefdBlock); void SetParentBlock(const KaxBlockGroup & aParentBlock) {ParentBlock = &aParentBlock;} + void SetReferencedTimecode(int64 refTimecode) {*static_cast(this) = refTimecode; bTimecodeSet = true;}; protected: const KaxBlockBlob * RefdBlock; const KaxBlockGroup * ParentBlock; - void SetReferencedTimecode(int64 refTimecode) {*static_cast(this) = refTimecode; bTimecodeSet = true;}; bool bTimecodeSet; bool bOurBlob; void FreeBlob();