Improve debugging

This commit is contained in:
Jeremy Soller 2024-01-24 16:35:17 -07:00
parent e2bb8cf5e1
commit 8867b6ff4c
No known key found for this signature in database
GPG key ID: DCFCA852D3906975
2 changed files with 34 additions and 34 deletions

View file

@ -292,10 +292,15 @@ impl Application for App {
video_frame_opt.take()
} {
Some(video_frame) => {
let pts = video_frame.0.pts();
self.handle_opt = Some(video_frame.into_handle());
let duration = start.elapsed();
log::debug!("converted video frame to handle in {:?}", duration);
log::debug!(
"converted video frame at {:?} to handle in {:?}",
pts,
duration
);
}
None => {}
}