mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-09 20:29:10 +02:00
Fix deserialization errors when reading chunks
Forgot to also increase this limit
This commit is contained in:
@@ -162,7 +162,10 @@ void serialize(S& s, EventPayload& payload) {
|
|||||||
s.ext(payload, bitsery::ext::StdVariant{
|
s.ext(payload, bitsery::ext::StdVariant{
|
||||||
[](S&, std::nullptr_t&) {},
|
[](S&, std::nullptr_t&) {},
|
||||||
[](S& s, std::string& string) {
|
[](S& s, std::string& string) {
|
||||||
s.text1b(string, max_string_length);
|
// `binary_buffer_size` and not `max_string_length`
|
||||||
|
// because we also use this to send back large chunk
|
||||||
|
// data
|
||||||
|
s.text1b(string, binary_buffer_size);
|
||||||
},
|
},
|
||||||
[](S& s, DynamicVstEvents& events) {
|
[](S& s, DynamicVstEvents& events) {
|
||||||
s.container(events.events, max_midi_events,
|
s.container(events.events, max_midi_events,
|
||||||
@@ -229,8 +232,8 @@ struct EventResult {
|
|||||||
template <typename S>
|
template <typename S>
|
||||||
void serialize(S& s) {
|
void serialize(S& s) {
|
||||||
s.value8b(return_value);
|
s.value8b(return_value);
|
||||||
// `max_chunk_buffer_size` and not `max_string_length` because we also
|
// `binary_buffer_size` and not `max_string_length` because we also use
|
||||||
// use this to send back large chunk data
|
// this to send back large chunk data
|
||||||
s.ext(data, bitsery::ext::StdOptional(),
|
s.ext(data, bitsery::ext::StdOptional(),
|
||||||
[](S& s, auto& v) { s.text1b(v, binary_buffer_size); });
|
[](S& s, auto& v) { s.text1b(v, binary_buffer_size); });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user