]> granicus.if.org Git - libmatroska/commitdiff
KaxBlockData: make SetReferencedTimecode public
authorMoritz Bunkus <moritz@bunkus.org>
Mon, 22 Jun 2020 09:53:07 +0000 (11:53 +0200)
committerMoritz Bunkus <moritz@bunkus.org>
Mon, 22 Jun 2020 09:53:07 +0000 (11:53 +0200)
That allows the caller to simply set the value without having to keep
the KaxBlockBlob/KaxBlockGroup objects around.

matroska/KaxBlockData.h

index 151ff45b4a11a772b55107859a17cda69508323d..bd5478480c57f914d151ac3bf47c9712b540dd3a 100644 (file)
@@ -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<EbmlSInteger*>(this) = refTimecode; bTimecodeSet = true;};
 
   protected:
     const KaxBlockBlob * RefdBlock;
     const KaxBlockGroup * ParentBlock;
-    void SetReferencedTimecode(int64 refTimecode) {*static_cast<EbmlSInteger*>(this) = refTimecode; bTimecodeSet = true;};
     bool bTimecodeSet;
         bool bOurBlob;
         void FreeBlob();