From fb11675884a0fe166708e8887e9cdfda22d2f56e Mon Sep 17 00:00:00 2001 From: falkTX Date: Wed, 29 Dec 2021 14:40:42 +0000 Subject: [PATCH] Partially revert last commit, state seeking is not wanted Signed-off-by: falkTX --- distrho/src/DistrhoPluginVST3.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/distrho/src/DistrhoPluginVST3.cpp b/distrho/src/DistrhoPluginVST3.cpp index eb1e91ea..eab69554 100644 --- a/distrho/src/DistrhoPluginVST3.cpp +++ b/distrho/src/DistrhoPluginVST3.cpp @@ -692,9 +692,6 @@ public: buffer[sizeof(buffer)-1] = '\xff'; v3_result res; - // int64_t ignore = 0; - // v3_cpp_obj(stream)->seek(stream, 0, V3_SEEK_SET, &ignore); - for (int32_t pos = 0, term = 0, read; term == 0; pos += read) { res = v3_cpp_obj(stream)->read(stream, buffer, sizeof(buffer)-1, &read); @@ -894,9 +891,6 @@ public: const uint32_t stateCount = 0; #endif - int64_t ignore = 0; - v3_cpp_obj(stream)->seek(stream, 0, V3_SEEK_SET, &ignore); - if (stateCount == 0 && paramCount == 0) { char buffer = '\0';