Browse Source

Fixed error restoring VST3 state in FL Studio

tags/2021-05-28
tpoole 9 years ago
parent
commit
2ec8fb49d7
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp

+ 2
- 0
modules/juce_audio_plugin_client/VST3/juce_VST3_Wrapper.cpp View File

@@ -1385,6 +1385,8 @@ public:
FUnknownPtr<IBStream> stateRefHolder (state); // just in case the caller hasn't properly ref-counted the stream object FUnknownPtr<IBStream> stateRefHolder (state); // just in case the caller hasn't properly ref-counted the stream object
if (state->seek (0, IBStream::kIBSeekSet, nullptr) == kResultTrue) if (state->seek (0, IBStream::kIBSeekSet, nullptr) == kResultTrue)
if (getHostType().isFruityLoops())
return readFromUnknownStream (state) ? kResultTrue : kResultFalse;
if (readFromMemoryStream (state) || readFromUnknownStream (state)) if (readFromMemoryStream (state) || readFromUnknownStream (state))
return kResultTrue; return kResultTrue;


Loading…
Cancel
Save