Improve frame skipping

This commit is contained in:
Jeremy Soller 2024-01-25 22:03:26 -07:00
parent c726fca224
commit da8c1f3df9
2 changed files with 25 additions and 11 deletions

View file

@ -308,7 +308,9 @@ impl Application for App {
log::warn!("skipping video frame {:?}", old_frame.0.pts());
}
// Frame is ready to be shown
video_frame_opt = Some(video_frame)
video_frame_opt = Some(video_frame);
//TODO: allow skipping?
break;
} else {
// Put frame back and exit loop
video_frames.push_front(video_frame);