From c64df609efa46161f00a2529ad2e2696c4f38ac4 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 2 Aug 2004 18:05:02 +0000 Subject: [PATCH] Added the new KaxEditionUID und KaxTagEditionUID elements. --- src/mkvinfo.cpp | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/src/mkvinfo.cpp b/src/mkvinfo.cpp index 10afaf783..aa5950bbf 100644 --- a/src/mkvinfo.cpp +++ b/src/mkvinfo.cpp @@ -1819,8 +1819,12 @@ def_handle(chapters) { for (i2 = 0; i2 < m2->ListSize(); i2++) { l3 = (*m2)[i2]; - if (!parse_chapter_atom(es, l3, 3) && - !is_global(es, l3, 3)) + if (is_id(l3, KaxEditionUID)) { + KaxEditionUID &edition_uid = *static_cast(l3); + show_element(l3, 3, "Edition UID: %llu", uint64(edition_uid)); + + } else if (!parse_chapter_atom(es, l3, 3) && + !is_global(es, l3, 3)) show_unknown_element(l3, 3); } // while (l3 != NULL) @@ -1843,15 +1847,16 @@ def_handle(tag_targets) { l4 = (*m3)[i3]; if (is_id(l4, KaxTagTrackUID)) { - KaxTagTrackUID &trackuid = - *static_cast(l4); + KaxTagTrackUID &trackuid = *static_cast(l4); show_element(l4, 4, "Track UID: %llu", uint64(trackuid)); } else if (is_id(l4, KaxTagChapterUID)) { - KaxTagChapterUID &chapteruid = - *static_cast(l4); - show_element(l4, 4, "Chapter UID: %llu", - uint64(chapteruid)); + KaxTagChapterUID &chapteruid = *static_cast(l4); + show_element(l4, 4, "Chapter UID: %llu", uint64(chapteruid)); + + } else if (is_id(l4, KaxTagEditionUID)) { + KaxTagEditionUID &editionuid = *static_cast(l4); + show_element(l4, 4, "Edition UID: %llu", uint64(editionuid)); } else if (!is_global(es, l4, 4) && !parse_multicomment(es, l4, 4))