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

+2 -2
View File
@@ -43,7 +43,7 @@
// Check if a 10.10 only class is available, NSLinguisticTagger crashes on 10.9
// if the string contains some characters.
if ([newTrack.language isEqualToString:@"Unknown"] && NSClassFromString(@"NSVisualEffectView")) {
if ([newTrack.language isEqualToString:@"und"] && NSClassFromString(@"NSVisualEffectView")) {
// we couldn't deduce language from the fileURL
// -> Let's look into the file itself
@@ -85,7 +85,7 @@
value:language];
if (languageName) {
newTrack.language = languageName;
newTrack.language = [MP42Languages ISO_639_2CodeForLang:languageName];
}
[locale release];
}