Return NO in updateMP4FileWithAttributes:attributes:error: only if a serious error happened like a permission error or the mp4 not closing properly. Print the other errors to the log.

This commit is contained in:
Damiano Galassi committed 2014-12-14 09:23:18 +01:00
1 parent f0b349eef1
commit 017cd8d8c1
6 files changed
+155 -123

No files matched your search

+5 -1
View File
@@ -676,8 +676,12 @@ int readMkvPacket(struct StdIoStream *ioStream, TrackInfo *trackInfo, uint64_t
if (trackInfo->Type == TT_SUB) {
if (readMkvPacket(_ioStream, trackInfo, FilePos, &frame, &FrameSize)) {
if (strcmp(trackInfo->CodecID, "S_VOBSUB") && strcmp(trackInfo->CodecID, "S_HDMV/PGS")) {
if (!demuxHelper->ss)
if (!demuxHelper->ss) {
demuxHelper->ss = [[SBSubSerializer alloc] init];
if (!strcmp(trackInfo->CodecID, "S_TEXT/ASS") || !strcmp(trackInfo->CodecID, "S_TEXT/SSA")) {
[demuxHelper->ss setSSA:YES];
}
}
NSString *string = [[[NSString alloc] initWithBytes:frame length:FrameSize encoding:NSUTF8StringEncoding] autorelease];
if (!strcmp(trackInfo->CodecID, "S_TEXT/ASS") || !strcmp(trackInfo->CodecID, "S_TEXT/SSA")) {