From: Steve Lhomme Date: Wed, 8 Mar 2017 12:18:36 +0000 (+0100) Subject: forbid the use of KaxTimeSlice and KaxSliceLaceNumber as they are deprecated since v1 X-Git-Tag: release-1.4.6~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3c698a372abe63a60b60309f2bbeaf12d1c15979;p=libmatroska forbid the use of KaxTimeSlice and KaxSliceLaceNumber as they are deprecated since v1 --- diff --git a/matroska/KaxSemantic.h b/matroska/KaxSemantic.h index 65084fb..b383e6a 100644 --- a/matroska/KaxSemantic.h +++ b/matroska/KaxSemantic.h @@ -168,10 +168,14 @@ DECLARE_MKX_MASTER(KaxSlices) DECLARE_MKX_MASTER(KaxTimeSlice) +public: + filepos_t RenderData(IOCallback & output, bool bForceRender, bool bSaveDefault); }; DECLARE_MKX_UINTEGER(KaxSliceLaceNumber) +public: + filepos_t RenderData(IOCallback & output, bool bForceRender, bool bSaveDefault); }; #if MATROSKA_VERSION >= 2 diff --git a/src/KaxSemantic.cpp b/src/KaxSemantic.cpp index 4af2557..3242f43 100644 --- a/src/KaxSemantic.cpp +++ b/src/KaxSemantic.cpp @@ -803,6 +803,16 @@ filepos_t KaxReferenceVirtual::RenderData(IOCallback & /* output */, bool /* bFo return 0; } +filepos_t KaxTimeSlice::RenderData(IOCallback & /* output */, bool /* bForceRender */, bool /* bSaveDefault */) { + assert(false); // no you are not allowed to use this element ! + return 0; +} + +filepos_t KaxSliceLaceNumber::RenderData(IOCallback & /* output */, bool /* bForceRender */, bool /* bSaveDefault */) { + assert(false); // no you are not allowed to use this element ! + return 0; +} + filepos_t KaxSliceFrameNumber::RenderData(IOCallback & /* output */, bool /* bForceRender */, bool /* bSaveDefault */) { assert(false); // no you are not allowed to use this element ! return 0;