GUI: header editor: track empty track language elements as "und"

See #1929.
This commit is contained in:
Moritz Bunkus 2017-04-04 19:25:16 +02:00
parent 955eae59bf
commit 49a25e25be
2 changed files with 6 additions and 0 deletions

View File

@ -14,6 +14,9 @@
default duration header field. Fixes #1916.
* mkvmerge: Matroska input: invalid track language elements are now treated as
if they were set to `und` = "undetermined". See #1929 for context.
* MKVToolNix GUI, header editor: empty track language elements are now treated
the same as those set to invalid ISO 639-2 codes: as if they were set to
`und` = "undetermined". See #1929 for context.
## Build system changes

View File

@ -584,6 +584,9 @@ is_popular_language_code(std::string const &code) {
int
map_to_iso639_2_code(std::string const &s,
bool allow_short_english_name) {
if (s.empty())
return -1;
auto source = s;
auto deprecated_code = s_deprecated_1_and_2_codes.find(source);
if (deprecated_code != s_deprecated_1_and_2_codes.end())