diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-03-25 22:58:50 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-03-25 22:58:50 +0100 |
| commit | 6a9cdf1f5ab9f7f7ecea865b2930bb4c385609c4 (patch) | |
| tree | 671f2655c54fbd9d7461bb9e55f96e065e9efd82 /test | |
| parent | 5192d1ef54f579c9ad4c09db871fe75d7f410dda (diff) | |
Use XX as an audio language when there is no specified audio language (#1939).
Previously we would omit the audio and subtitle language parts of the
DCI name if there was no specified audio language. Sadly if we do
do that EasyDCP player 4.0.1 reports a warning (whose details you
can't see on the demo version).
Diffstat (limited to 'test')
| -rw-r--r-- | test/isdcf_name_test.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/isdcf_name_test.cc b/test/isdcf_name_test.cc index dc2263206..dad2ba7d9 100644 --- a/test/isdcf_name_test.cc +++ b/test/isdcf_name_test.cc @@ -42,7 +42,7 @@ using std::shared_ptr; BOOST_AUTO_TEST_CASE (isdcf_name_test) { - shared_ptr<Film> film = new_test_film ("isdcf_name_test"); + auto film = new_test_film ("isdcf_name_test"); /* A basic test */ @@ -61,6 +61,11 @@ BOOST_AUTO_TEST_CASE (isdcf_name_test) film->set_interop (true); BOOST_CHECK_EQUAL (film->isdcf_name(false), "MyNiceFilm_FTR-1_F_EN-XX_UK-PG_MOS_2K_ST_20140704_FA_IOP_OV"); + /* Check that specifying no audio language writes XX */ + m.audio_language = ""; + film->set_isdcf_metadata (m); + BOOST_CHECK_EQUAL (film->isdcf_name(false), "MyNiceFilm_FTR-1_F_XX-XX_UK-PG_MOS_2K_ST_20140704_FA_IOP_OV"); + /* Test a long name and some different data */ film->set_name ("My Nice Film With A Very Long Name"); @@ -215,3 +220,4 @@ BOOST_AUTO_TEST_CASE (isdcf_name_test) 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_PP_SMPTE_OV"); } + |
