diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-01-09 23:44:00 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-01-09 23:44:00 +0100 |
| commit | bc9076e9b5da44574970e3f2b8bbc52ad840b3b2 (patch) | |
| tree | 61b528588e2fd69627bddc425c6de3340714629e /src/lib/hints.h | |
| parent | 7bf04a96fa404de83867eb61890af665375aef48 (diff) | |
Speed up hints tests by not running a pointless audio analysis.
Diffstat (limited to 'src/lib/hints.h')
| -rw-r--r-- | src/lib/hints.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/hints.h b/src/lib/hints.h index 2a5e8d4a0..6553593a0 100644 --- a/src/lib/hints.h +++ b/src/lib/hints.h @@ -51,6 +51,9 @@ public: /* For tests only */ void join (); + void disable_audio_analysis () { + _disable_audio_analysis = true; + } private: friend struct hint_subtitle_too_early; @@ -103,4 +106,6 @@ private: boost::optional<dcpomatic::DCPTimePeriod> _last_subtitle; boost::atomic<bool> _stop; + + bool _disable_audio_analysis = false; }; |
