From: Carl Hetherington Date: Wed, 20 Jul 2022 16:04:17 +0000 (+0200) Subject: Fix failure to update peak on changing gain (#2286). X-Git-Tag: v2.16.19 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=ddc48862d1008fa18f5dffd14ba2218a1b6803e3 Fix failure to update peak on changing gain (#2286). --- diff --git a/src/wx/audio_panel.cc b/src/wx/audio_panel.cc index 7efdeb8ac..5e8370d46 100644 --- a/src/wx/audio_panel.cc +++ b/src/wx/audio_panel.cc @@ -261,6 +261,8 @@ AudioPanel::film_content_changed (int property) setup_peak (); layout (); } else if (property == AudioContentProperty::GAIN) { + /* This is a bit aggressive but probably not so bad */ + _peak_cache.clear(); setup_peak (); } else if (property == DCPContentProperty::REFERENCE_AUDIO) { if (ac.size() == 1) {