diff options
author | Damiano Galassi <[email protected]> | 2017-12-11 14:58:15 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2017-12-11 14:58:15 +0100 |
commit | d55ae8e31f578e6ba254608e198c5931beba4084 (patch) | |
tree | 6329c4f913940860a463cb8fd56ac0f13b0b7a1d /macosx/HBTitle.m | |
parent | 05f181970d9c68c76ad9a686fee6f284412b5eb6 (diff) |
MacGui: add a "Start" column in the chapters tableview.
Diffstat (limited to 'macosx/HBTitle.m')
-rw-r--r-- | macosx/HBTitle.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/macosx/HBTitle.m b/macosx/HBTitle.m index 3a6bc134b..1e5e8654e 100644 --- a/macosx/HBTitle.m +++ b/macosx/HBTitle.m @@ -231,7 +231,7 @@ extern NSString *keySubTrackType; if (!_chapters) { NSMutableArray<HBChapter *> *chapters = [NSMutableArray array]; - + uint64_t currentTime = 0; for (int i = 0; i < hb_list_count(self.hb_title->list_chapter); i++) { hb_chapter_t *chapter = hb_list_item(self.hb_title->list_chapter, i); @@ -250,7 +250,9 @@ extern NSString *keySubTrackType; [chapters addObject:[[HBChapter alloc] initWithTitle:title index:i + 1 + timestamp:currentTime duration:chapter->duration]]; + currentTime += chapter->duration; } } |