diff --git a/Classes/DocumentWindowController.swift b/Classes/DocumentWindowController.swift index 0fda642..aa77d0b 100644 --- a/Classes/DocumentWindowController.swift +++ b/Classes/DocumentWindowController.swift @@ -308,12 +308,12 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe let minutes = sender.tag * 60 * 1000 if minutes > 0 { - for (index, duration) in stride(from: 0, to: mp4.duration, by: minutes).enumerated() { - track.addChapter("Chapter \(index + 1)", duration: UInt64(duration)) + for (index, timestamp) in stride(from: 0, to: mp4.duration, by: minutes).enumerated() { + track.addChapter("Chapter \(index + 1)", timestamp: UInt64(timestamp)) } } else { - track.addChapter("Chapter 1", duration: UInt64(mp4.duration)) + track.addChapter("Chapter 1", timestamp: 0) } doc.updateChangeCount(.changeDone) diff --git a/Classes/PropertyView/ChapterViewController.swift b/Classes/PropertyView/ChapterViewController.swift index 328a2f1..ceae99f 100644 --- a/Classes/PropertyView/ChapterViewController.swift +++ b/Classes/PropertyView/ChapterViewController.swift @@ -119,7 +119,7 @@ final class ChapterViewController : PropertyView, NSTableViewDataSource, NSTable } @IBAction func addChapter(_ sender: Any) { - track.addChapter("Chapter", duration: 0) + track.addChapter("Chapter", timestamp: 0) tableView.reloadData() updateChangeCount() diff --git a/MP42Foundation b/MP42Foundation index 47aadec..f104a7c 160000 --- a/MP42Foundation +++ b/MP42Foundation @@ -1 +1 @@ -Subproject commit 47aadecfffdf155849d46d39ff6d4bbaeb02c2ec +Subproject commit f104a7c69acaadbde475c9b24d421e4d5d3c033e