auto player = make_shared<Player>(film, Image::Alignment::COMPACT);
player->set_ignore_video ();
- if (check_loudness_done) {
+ if (check_loudness_done || _disable_audio_analysis) {
/* We don't need to analyse audio because we already loaded a suitable analysis */
player->set_ignore_audio ();
}
/* For tests only */
void join ();
+ void disable_audio_analysis () {
+ _disable_audio_analysis = true;
+ }
private:
friend struct hint_subtitle_too_early;
boost::optional<dcpomatic::DCPTimePeriod> _last_subtitle;
boost::atomic<bool> _stop;
+
+ bool _disable_audio_analysis = false;
};
{
current_hints.clear ();
Hints hints (film);
+ /* None of our tests need the audio analysis, and it is quite time-consuming */
+ hints.disable_audio_analysis ();
hints.Hint.connect (collect_hint);
hints.start ();
hints.join ();