diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-04-17 22:25:50 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-04-20 22:31:08 +0200 |
| commit | e6d7b6d8520c7454ecf67df7269056a16d0e2b70 (patch) | |
| tree | f50c2751d34f6064265f1d8446ebd03583b263f0 /test | |
| parent | 341ba1115b6285fec998901e50f9afb48bcaeeb6 (diff) | |
Lookup the correct DCNC code to use for languages rather than just
using the language's subtag (#2235).
Diffstat (limited to 'test')
| -rw-r--r-- | test/isdcf_name_test.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/isdcf_name_test.cc b/test/isdcf_name_test.cc index 28df9b2b9..d3227f636 100644 --- a/test/isdcf_name_test.cc +++ b/test/isdcf_name_test.cc @@ -230,5 +230,9 @@ BOOST_AUTO_TEST_CASE (isdcf_name_test) mapping.set (0, dcp::Channel::VI, 1.0); sound->audio->set_mapping (mapping); BOOST_CHECK_EQUAL (film->isdcf_name(false), "LikeShouting_XSN-2_F-133_DE-fr_US-R_71-HI-VI_4K_DI_20140704_PPF_SMPTE_OV"); + + /* Check that the proper codes are used, not just part of the language code; in this case, QBP instead of PT (#2235) */ + film->set_audio_language(dcp::LanguageTag("pt-BR")); + BOOST_CHECK_EQUAL (film->isdcf_name(false), "LikeShouting_XSN-2_F-133_QBP-fr_US-R_71-HI-VI_4K_DI_20140704_PPF_SMPTE_OV"); } |
