From 13bd044771444dcb360ee2a6b725a2ebbecca68b Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Sun, 17 Nov 2013 12:41:16 +0100 Subject: [PATCH] Fix a case in which the chapters were not written to disk. --- MP42/MP42ChapterTrack.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MP42/MP42ChapterTrack.m b/MP42/MP42ChapterTrack.m index cea4b44..ca473d9 100644 --- a/MP42/MP42ChapterTrack.m +++ b/MP42/MP42ChapterTrack.m @@ -175,7 +175,7 @@ { BOOL success = YES; - if (_isEdited && _areChaptersEdited) { + if ((_isEdited && _areChaptersEdited) || !_muxed) { MP4Chapter_t * fileChapters = 0; MP4Duration refTrackDuration; uint32_t chapterCount = 0;