From 0619cc6c4d05801e4bc0602388b0fce1b8b4fc11 Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Tue, 19 Dec 2023 08:43:28 +0100 Subject: [PATCH] Make Prev/Next Segment UID classes standalone They are not KaxSegmentUID as they don't have the same ID. If we need a special class for Segment UIDs (including chapter ones) we should use a proper class/interface. Eventually this should be moved into KaxSemantic like KaxSegmentUID. --- matroska/KaxInfoData.h | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/matroska/KaxInfoData.h b/matroska/KaxInfoData.h index 037d8cf8..a7e8c51d 100644 --- a/matroska/KaxInfoData.h +++ b/matroska/KaxInfoData.h @@ -25,23 +25,15 @@ using namespace libebml; namespace libmatroska { DECLARE_MKX_CONTEXT(KaxPrevUID) -class MATROSKA_DLL_API KaxPrevUID : public KaxSegmentUID { +DECLARE_MKX_BINARY (KaxPrevUID) public: - KaxPrevUID() = default; - KaxPrevUID(const KaxPrevUID & ElementToClone) = default; bool ValidateSize() const override { return IsFiniteSize() && (GetSize() == 16);} - - EBML_CONCRETE_CLASS(KaxPrevUID) }; DECLARE_MKX_CONTEXT(KaxNextUID) -class MATROSKA_DLL_API KaxNextUID : public KaxSegmentUID { +DECLARE_MKX_BINARY (KaxNextUID) public: - KaxNextUID() = default; - KaxNextUID(const KaxNextUID & ElementToClone) = default; bool ValidateSize() const override { return IsFiniteSize() && (GetSize() == 16);} - - EBML_CONCRETE_CLASS(KaxNextUID) }; } // namespace libmatroska