Skip to content

Commit

Permalink
deprecate cache elements
Browse files Browse the repository at this point in the history
  • Loading branch information
robUx4 committed Jan 7, 2024
1 parent c1b344a commit c5ad5c1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
4 changes: 4 additions & 0 deletions matroska/KaxSemantic.h
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,13 @@ DECLARE_MKX_UINTEGER(KaxTrackFlagLacing)
};

DECLARE_MKX_UINTEGER(KaxTrackMinCache)
public:
filepos_t RenderData(IOCallback & output, bool bForceRender, bool bSaveDefault) override;
};

DECLARE_MKX_UINTEGER(KaxTrackMaxCache)
public:
filepos_t RenderData(IOCallback & output, bool bForceRender, bool bSaveDefault) override;
};

DECLARE_MKX_UINTEGER(KaxTrackDefaultDuration)
Expand Down
14 changes: 12 additions & 2 deletions src/KaxSemantic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,8 @@ DEFINE_SEMANTIC_ITEM(false, true, KaxFlagTextDescriptions)
DEFINE_SEMANTIC_ITEM(false, true, KaxFlagOriginal)
DEFINE_SEMANTIC_ITEM(false, true, KaxFlagCommentary)
DEFINE_SEMANTIC_ITEM(true, true, KaxTrackFlagLacing)
DEFINE_SEMANTIC_ITEM(true, true, KaxTrackMinCache)
DEFINE_SEMANTIC_ITEM(false, true, KaxTrackMaxCache)
DEFINE_SEMANTIC_ITEM(true, true, KaxTrackMinCache) // not supported
DEFINE_SEMANTIC_ITEM(false, true, KaxTrackMaxCache) // not supported
DEFINE_SEMANTIC_ITEM(false, true, KaxTrackDefaultDuration)
DEFINE_SEMANTIC_ITEM(false, true, KaxTrackDefaultDecodedFieldDuration)
DEFINE_SEMANTIC_ITEM(true, true, KaxTrackTimecodeScale)
Expand Down Expand Up @@ -832,6 +832,16 @@ filepos_t KaxEncryptedBlock::RenderData(IOCallback & /* output */, bool /* bForc
return 0;
}

filepos_t KaxTrackMinCache::RenderData(IOCallback & /* output */, bool /* bForceRender */, bool /* bSaveDefault */) {
assert(false); // no you are not allowed to use this element !
return 0;
}

filepos_t KaxTrackMaxCache::RenderData(IOCallback & /* output */, bool /* bForceRender */, bool /* bSaveDefault */) {
assert(false); // no you are not allowed to use this element !
return 0;
}

filepos_t KaxTrackTimecodeScale::RenderData(IOCallback & /* output */, bool /* bForceRender */, bool /* bSaveDefault */) {
assert(false); // no you are not allowed to use this element !
return 0;
Expand Down

0 comments on commit c5ad5c1

Please sign in to comment.