Add back "Chapter Track" name to chapters track.

This commit is contained in:
Damiano Galassi committed 2016-08-16 10:36:35 +02:00
1 parent 2fcf67f7f6
commit 285e6e9667
4 files changed
+16 -12

No files matched your search

+3 -6
View File
@@ -182,10 +182,7 @@ NSString * getTrackName(MP4FileHandle fileHandle, MP4TrackId Id)
free(trackName);
return name;
}
const char *type = MP4GetTrackType(fileHandle, Id);
FourCharCode code = Str2FourCC(type);
return localizedMediaDisplayName(code);
return nil;
}
FourCharCode getTrackMediaFormat(MP4FileHandle fileHandle, MP4TrackId Id)
@@ -247,8 +244,8 @@ FourCharCode getTrackMediaFormat(MP4FileHandle fileHandle, MP4TrackId Id)
return kMP42SubtitleCodecType_PGS;
else {
// FIXME
return kMP42MediaType_Unknown;
FourCharCode code = Str2FourCC(dataName);
return code;
}
}