mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-06 10:42:22 +00:00
mi-info: add start/stop times in toc
This commit is contained in:
parent
c469f9b2a4
commit
299d1c8b88
1 changed files with 8 additions and 2 deletions
|
@ -844,8 +844,14 @@ public class MediaInfo.Info : Box
|
||||||
int64 start, stop;
|
int64 start, stop;
|
||||||
e.get_start_stop_times(out start, out stop);
|
e.get_start_stop_times(out start, out stop);
|
||||||
// TODO(ensonic): indent
|
// TODO(ensonic): indent
|
||||||
// TODO(ensonic): add start/stop, if !Gst.ClockTime.CLOCK_TIME_NONE
|
string s = "";
|
||||||
string s = "%s\n".printf(TocEntryType.get_nick(e.get_entry_type()));
|
if (start != Gst.CLOCK_TIME_NONE) {
|
||||||
|
s += "%s ".printf(format_time((ClockTime)start));
|
||||||
|
}
|
||||||
|
if (stop != Gst.CLOCK_TIME_NONE) {
|
||||||
|
s += "- %s ".printf(format_time((ClockTime)stop));
|
||||||
|
}
|
||||||
|
s += "%s\n".printf(TocEntryType.get_nick(e.get_entry_type()));
|
||||||
|
|
||||||
unowned GLib.List<TocEntry> entries = e.get_sub_entries ();
|
unowned GLib.List<TocEntry> entries = e.get_sub_entries ();
|
||||||
if (entries != null) {
|
if (entries != null) {
|
||||||
|
|
Loading…
Reference in a new issue