mkvinfo: Support for KaxSegmentFilename and KaxTitle.

This commit is contained in:
Moritz Bunkus 2003-06-24 16:11:43 +00:00
parent c178950763
commit 6d0881d709
2 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2003-06-24 Moritz Bunkus <moritz@bunkus.org>
* mkvinfo: Support for KaxSegmentFilename and KaxTitle.
2003-06-22 Moritz Bunkus <moritz@bunkus.org>
* Released v0.5.0.

View File

@ -393,6 +393,23 @@ bool process_file(const char *file_name) {
sprintf(&buffer[strlen(buffer)], " 0x%02x", b[i]);
show_element(l2, 2, "Next segment UID:%s", buffer);
} else if (EbmlId(*l2) == KaxSegmentFilename::ClassInfos.GlobalId) {
char *str;
KaxSegmentFilename &filename =
*static_cast<KaxSegmentFilename *>(l2);
filename.ReadData(es->I_O());
str = UTFstring_to_cstr(UTFstring(filename));
show_element(l2, 2, "Segment filename: %s", str);
safefree(str);
} else if (EbmlId(*l2) == KaxTitle::ClassInfos.GlobalId) {
char *str;
KaxTitle &title = *static_cast<KaxTitle *>(l2);
title.ReadData(es->I_O());
str = UTFstring_to_cstr(UTFstring(title));
show_element(l2, 2, "Title: %s", str);
safefree(str);
} else if (!is_ebmlvoid(l2, 2))
show_unknown_element(l2, 2);