Use the iso639_2 to store the language in MP42Track.

This commit is contained in:
Damiano Galassi committed 2016-11-04 09:57:25 +01:00
1 parent aa760b301c
commit d847082696
12 files changed
+52 -21

No files matched your search

+1 -1
View File
@@ -243,7 +243,7 @@ static NSArray<SBVobSubTrack *> * LoadVobSubSubtitles(NSURL *theDirectory, NSStr
newTrack.URL = self.fileURL;
newTrack.alternate_group = 2;
newTrack.trackId = count++;
newTrack.language = [NSString stringWithFormat:@"%s", lang_for_code_s([track->language UTF8String])->eng_name];;
newTrack.language = [NSString stringWithFormat:@"%s", lang_for_code_s([track->language UTF8String])->iso639_2];;
newTrack.duration = track->duration;
[self addTrack:newTrack];