Make a MP42Chapter method clearer

This commit is contained in:
Damiano Galassi committed 2025-07-25 17:35:42 +02:00
1 parent 47aadecfff
commit f104a7c69a
4 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -323,10 +323,10 @@ MP42_OBJC_DIRECT_MEMBERS
}
if (chapters->Children[xi].Display && strlen(chapters->Children[xi].Display->String)) {
[newTrack addChapter:[NSString stringWithUTF8String:chapters->Children[xi].Display->String]
duration:timestamp];
timestamp:timestamp];
} else {
[newTrack addChapter:[NSString stringWithFormat:@"Chapter %d", xi+1]
duration:timestamp];
timestamp:timestamp];
}
}
[self addTrack:newTrack];