Skip to content

Commit

Permalink
Make Prev/Next Segment UID classes standalone
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
robUx4 committed Dec 19, 2023
1 parent 5b8dbaf commit 0619cc6
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions matroska/KaxInfoData.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0619cc6

Please sign in to comment.