]> granicus.if.org Git - libmatroska/commitdiff
forbid the use of KaxTimeSlice and KaxSliceLaceNumber as they are deprecated since v1
authorSteve Lhomme <slhomme@matroska.org>
Wed, 8 Mar 2017 12:18:36 +0000 (13:18 +0100)
committerSteve Lhomme <slhomme@matroska.org>
Wed, 8 Mar 2017 12:19:52 +0000 (13:19 +0100)
matroska/KaxSemantic.h
src/KaxSemantic.cpp

index 65084fbe0eb7746f683e91fdd43c79d64ee77fbb..b383e6a20a5970c596b0b35798c9dfe5dcbc1672 100644 (file)
@@ -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
index 4af2557adc34bed6f8cdc74e48158213bd712665..3242f432e1054d85cd1998cb34e56baba92305b3 100644 (file)
@@ -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;