Clean up MP42Track a bit.

This commit is contained in:
Damiano Galassi committed 2016-09-13 12:05:40 +02:00
1 parent cda91fca54
commit 0bd4e2644b
2 files changed
+3 -4

No files matched your search

-2
View File
@@ -788,7 +788,6 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn
for (MP42TextSample *chapter in chapterToBeImported) {
[newChapter addChapter:chapter];
}
newChapter.duration = self.mp4.duration;
[self.mp4 addTrack:newChapter];
[self updateChangeCount:NSChangeDone];
@@ -1023,7 +1022,6 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn
if (!chapterTrack) {
chapterTrack = [[MP42ChapterTrack alloc] init];
chapterTrack.duration = self.mp4.duration;
[self.mp4 addTrack:chapterTrack];
}