Improve frame skipping
This commit is contained in:
parent
c726fca224
commit
da8c1f3df9
2 changed files with 25 additions and 11 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue