From 5b4ca7c711718074b954070adcbcc7abcd3661fb Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Tue, 5 Jul 2016 10:26:06 +0200 Subject: [PATCH] Fix closed caption passthru form avfoundation importer. --- MP42/MP42AVFImporter.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MP42/MP42AVFImporter.m b/MP42/MP42AVFImporter.m index 738b981..7578f6f 100644 --- a/MP42/MP42AVFImporter.m +++ b/MP42/MP42AVFImporter.m @@ -294,6 +294,12 @@ // Subtitle type, nothing interesting here newTrack = [[MP42SubtitleTrack alloc] init]; + } + else if ([track.mediaType isEqualToString:AVMediaTypeClosedCaption]) { + + // Subtitle type, nothing interesting here + newTrack = [[MP42ClosedCaptionTrack alloc] init]; + } else if ([track.mediaType isEqualToString:AVMediaTypeText]) {