We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00f67ca commit 75237d1Copy full SHA for 75237d1
videocall-client/src/decode/video_decoder_with_buffer.rs
@@ -42,7 +42,7 @@ impl<T: VideoDecoderTrait> VideoDecoderWithBuffer<T> {
42
let is_future_frame = new_sequence_number > sequence;
43
let is_future_i_frame = is_future_frame && frame_type == EncodedVideoChunkType::Key;
44
let is_next_frame = new_sequence_number == sequence + 1;
45
- let next_frame_already_cached = self.cache.get(&(sequence + 1)).is_some();
+ let next_frame_already_cached = self.cache.contains_key(&(sequence + 1));
46
if is_future_i_frame || is_next_frame {
47
self.video_decoder.decode(image);
48
self.sequence = Some(new_sequence_number);
0 commit comments