Skip to content

Commit

Permalink
fix(packets): 🐛 Fix negotiation packet parsing; fixes protocol break (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
zmerp authored May 4, 2024
1 parent de235ea commit a162d43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion alvr/packets/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ pub fn decode_video_streaming_capabilities(
}
}

let caps_json = json::from_str::<json::Value>(&String::from_utf8(json_bytes)?)?;
let caps_json =
json::from_str::<json::Value>(&String::from_utf8(json_bytes)?).unwrap_or(json::Value::Null);

Ok(VideoStreamingCapabilities {
default_view_resolution: legacy.default_view_resolution,
Expand Down

0 comments on commit a162d43

Please # to comment.