diff options
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/hints.cc | 18 | ||||
| -rw-r--r-- | src/lib/hints.h | 1 |
2 files changed, 19 insertions, 0 deletions
diff --git a/src/lib/hints.cc b/src/lib/hints.cc index fe2e5889c..64122db8d 100644 --- a/src/lib/hints.cc +++ b/src/lib/hints.cc @@ -400,6 +400,7 @@ try check_ffec_and_ffmc_in_smpte_feature (); check_out_of_range_markers (); check_text_languages (); + check_audio_language (); if (check_loudness_done) { emit (bind(boost::ref(Progress), _("Examining subtitles and closed captions"))); @@ -637,3 +638,20 @@ Hints::check_text_languages () } } } + + +void +Hints::check_audio_language () +{ + auto content = film()->content(); + auto mapped_audio = + std::find_if(content.begin(), content.end(), [](shared_ptr<const Content> c) { + return c->audio && !c->audio->mapping().mapped_output_channels().empty(); + }); + + if (mapped_audio != content.end() && !film()->audio_language()) { + hint (_("Some of your content has audio but you have not set the audio language. It is advisable to set the audio language " + "in the \"DCP\" tab unless your audio has no spoken parts.")); + } +} + diff --git a/src/lib/hints.h b/src/lib/hints.h index 81a37a3c4..2a5e8d4a0 100644 --- a/src/lib/hints.h +++ b/src/lib/hints.h @@ -78,6 +78,7 @@ private: void check_ffec_and_ffmc_in_smpte_feature (); void check_out_of_range_markers (); void check_text_languages (); + void check_audio_language (); boost::thread _thread; /** This is used to make a partial DCP containing only the subtitles and closed captions that |
