We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e958e4 commit c94e044Copy full SHA for c94e044
1 file changed
crates/rendering/src/decoder/avassetreader.rs
@@ -592,8 +592,15 @@ impl AVAssetReaderDecoder {
592
let data = cached.data().clone();
593
*last_sent_frame.borrow_mut() = Some(data.clone());
594
let _ = req.sender.send(data.to_decoded_frame());
595
- } else if is_scrubbing {
596
- let data = cache_frame.data().clone();
+ } else {
+ let data = if is_scrubbing {
597
+ cache_frame.data().clone()
598
599
+ last_sent_frame
600
+ .borrow()
601
+ .clone()
602
+ .unwrap_or_else(|| cache_frame.data().clone())
603
+ };
604
605
606
}
0 commit comments