Skip to content

Commit

Permalink
fix(packets): 🐛 Do not bail on "wired" field not found; fix protocol …
Browse files Browse the repository at this point in the history
…break (#2637)
  • Loading branch information
zmerp authored Jan 17, 2025
1 parent 96c72da commit 7304c15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alvr/packets/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ pub fn decode_stream_config(packet: &StreamConfigPacket) -> Result<StreamConfig>
.unwrap_or(settings.video.encoder_config.use_full_range);
let encoding_gamma = json::from_value(negotiated_json["encoding_gamma"].clone()).unwrap_or(1.0);
let enable_hdr = json::from_value(negotiated_json["enable_hdr"].clone()).unwrap_or(false);
let wired = json::from_value(negotiated_json["wired"].clone())?;
let wired = json::from_value(negotiated_json["wired"].clone()).unwrap_or(false);

Ok(StreamConfig {
server_version: session_config.server_version,
Expand Down

0 comments on commit 7304c15

Please sign in to comment.