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];
}
+3 -2
View File
@@ -533,7 +533,7 @@
else if ([track isMemberOfClass:[MP42VideoTrack class]]) {
if ([(track.sourceURL).pathExtension caseInsensitiveCompare:@"264"] == NSOrderedSame ||
[(track.sourceURL).pathExtension caseInsensitiveCompare:@"h264"] == NSOrderedSame) {
switch(conversion) {
/*switch(conversion) {
case 0:
track.trackId = 2398;
break;
@@ -561,7 +561,8 @@
default:
track.trackId = 2398;
break;
}
}*/
// FIXME
}
}