summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-07-20 18:04:17 +0200
committerCarl Hetherington <cth@carlh.net>2022-07-20 18:04:17 +0200
commitddc48862d1008fa18f5dffd14ba2218a1b6803e3 (patch)
tree67ab2badd5d507f8feec347d8e921098e7a3f581
parentb58009c2523f6d300e395a616ed790e0789abfa5 (diff)
Fix failure to update peak on changing gain (#2286).v2.16.19
-rw-r--r--src/wx/audio_panel.cc2
1 files changed, 2 insertions, 0 deletions
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) {