Skip to content

Commit

Permalink
Fix video freeze in rare cases when enabling "avoid video glitching"
Browse files Browse the repository at this point in the history
Co-Authored-By: Vixea <[email protected]>
  • Loading branch information
zmerp and Vixea committed Aug 19, 2023
1 parent 4afd1b3 commit b4489ba
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions alvr/client_core/src/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,6 @@ fn connection_pipeline(
stream_corrupted = false;
} else if data.had_packet_loss() {
stream_corrupted = true;
if let Some(sender) = &mut *CONTROL_SENDER.lock() {
sender.send(&ClientControlPacket::RequestIdr).ok();
}
warn!("Network dropped video packet");
}

Expand All @@ -332,7 +329,11 @@ fn connection_pipeline(
warn!("Dropped video packet. Reason: Decoder saturation")
}
} else {
warn!("Dropped video packet. Reason: Waiting for IDR frame")
warn!("Dropped video packet. Reason: Waiting for IDR frame");

if let Some(sender) = &mut *CONTROL_SENDER.lock() {
sender.send(&ClientControlPacket::RequestIdr).ok();
}
}
}
});
Expand Down

0 comments on commit b4489ba

Please sign in to comment.