From abc1cf42543194c700905f966c8ca3e2f760d21a Mon Sep 17 00:00:00 2001 From: jules Date: Fri, 20 Dec 2013 15:20:36 +0000 Subject: [PATCH] VST3 state fix. --- .../format_types/juce_VST3PluginFormat.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp b/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp index c6b67f4915..58fb001583 100644 --- a/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp +++ b/modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp @@ -2342,7 +2342,8 @@ private: Steinberg::MemoryStream stream; if (component->getState (&stream) == kResultTrue) - warnOnFailure (editController->setComponentState (&stream)); + if (stream.seek (0, Steinberg::IBStream::kIBSeekSet, nullptr) == kResultTrue) + warnOnFailure (editController->setComponentState (&stream)); } void grabInformationObjects()