From c3776f660fd8be954f4a8bf1741fdb411d9dba6a Mon Sep 17 00:00:00 2001 From: Riccardo Zaglia Date: Thu, 2 May 2024 22:55:43 +0200 Subject: [PATCH] fix(packets): :bug: Fix negotiation packet parsing; fixes protocol break --- alvr/packets/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/alvr/packets/src/lib.rs b/alvr/packets/src/lib.rs index 861c977099..1e18a48d40 100644 --- a/alvr/packets/src/lib.rs +++ b/alvr/packets/src/lib.rs @@ -79,7 +79,8 @@ pub fn decode_video_streaming_capabilities( } } - let caps_json = json::from_str::(&String::from_utf8(json_bytes)?)?; + let caps_json = + json::from_str::(&String::from_utf8(json_bytes)?).unwrap_or(json::Value::Null); Ok(VideoStreamingCapabilities { default_view_resolution: legacy.default_view_resolution,