From 7c9cd7b9e5006011ceffd2318c5bfcc1ebcda174 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Wed, 9 Jun 2021 12:31:03 +0200 Subject: [PATCH] Fix uninitialized timed caches This could prevent resizeable plugins from being resizeable in Ardour if the initialized timestamp just happened to be greater than the current time, since the returned result would then likely be some invalid value. --- CHANGELOG.md | 3 +++ src/common/utils.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c229386c..b0a60f5e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,9 @@ Versioning](https://semver.org/spec/v2.0.0.html). ### Fixed +- Fixed the `IPlugView::canResize()` cache added in yabridge 3.2.0 sometimes not + being initialized correctly, preventing host-driven resizes in certain + situations. This was mostly noticeable in **Ardour**. - Fixed mouse clicks in VST2 editors in **Tracktion Waveform** being offset vertically because of the way Waveform embeds VST2 editors. - Fixed _Shattered Glass Audio Code Red (Free)_ crashing when opening the plugin diff --git a/src/common/utils.h b/src/common/utils.h index 843f591f..d1e31e1e 100644 --- a/src/common/utils.h +++ b/src/common/utils.h @@ -278,5 +278,5 @@ class TimedValueCache { private: T value; - time_t valid_until; + time_t valid_until = 0; };