diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-10-13 23:47:33 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-10-13 23:47:33 +0200 |
| commit | a9dde34b8772ef8b985af067e2ff709be4e3cab6 (patch) | |
| tree | ec6dad9b92f1e58359b139b35dd349cfdc7b1094 /src/lib/film.cc | |
| parent | 7c73ec405fdb55bd78d82d764999b5af6d81e973 (diff) | |
Hide the upmixers unless an "advanced" configuration option is ticked.v2.15.22
The upmixers are not of sufficient quality to always be an improvement,
and anecdotally it seems that some users see them and hope one will
be a silver bullet.
Diffstat (limited to 'src/lib/film.cc')
| -rw-r--r-- | src/lib/film.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/film.cc b/src/lib/film.cc index e85543b80..93459661b 100644 --- a/src/lib/film.cc +++ b/src/lib/film.cc @@ -93,6 +93,7 @@ using std::copy; using std::back_inserter; using std::map; using std::exception; +using std::find; using boost::shared_ptr; using boost::weak_ptr; using boost::dynamic_pointer_cast; @@ -542,6 +543,13 @@ Film::read_metadata (optional<boost::filesystem::path> path) _audio_processor = 0; } + if (_audio_processor && !Config::instance()->show_experimental_audio_processors()) { + list<AudioProcessor const *> ap = AudioProcessor::visible(); + if (find(ap.begin(), ap.end(), _audio_processor) == ap.end()) { + Config::instance()->set_show_experimental_audio_processors(true); + } + } + _reel_type = static_cast<ReelType> (f.optional_number_child<int>("ReelType").get_value_or (static_cast<int>(REELTYPE_SINGLE))); _reel_length = f.optional_number_child<int64_t>("ReelLength").get_value_or (2000000000); _upload_after_make_dcp = f.optional_bool_child("UploadAfterMakeDCP").get_value_or (false); |
