projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b58009c
)
Fix failure to update peak on changing gain (#2286).
v2.16.19
author
Carl Hetherington
<cth@carlh.net>
Wed, 20 Jul 2022 16:04:17 +0000
(18:04 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Wed, 20 Jul 2022 16:04:17 +0000
(18:04 +0200)
src/wx/audio_panel.cc
patch
|
blob
|
history
diff --git
a/src/wx/audio_panel.cc
b/src/wx/audio_panel.cc
index 7efdeb8ac88de1acd7c63cda135f8d0f87db6b01..5e8370d46bfcb5b258f0219517faccbcef498cdb 100644
(file)
--- 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) {