log some more bullshit

This commit is contained in:
Erica Z 2024-11-05 10:52:33 +01:00
parent d3641a6f33
commit c25226f7c2

View file

@ -246,7 +246,15 @@ mod imp {
// ^ ignore // ^ ignore
} }
Event::Seek => {
event!(Level::INFO, "seek event");
// TODO: if doing "buffering" progress bar, show it after a timeout here
}
Event::PlaybackRestart => { Event::PlaybackRestart => {
event!(Level::INFO, "playback restart event");
// TODO: if doing "buffering" progress bar, hide it here
if let Some(queued_seek) = window.imp().queued_seek.take() { if let Some(queued_seek) = window.imp().queued_seek.take() {
// a seek was tried before and failed, try again now // a seek was tried before and failed, try again now
event!(Level::INFO, "performing queued seek to {queued_seek}"); event!(Level::INFO, "performing queued seek to {queued_seek}");
@ -255,6 +263,8 @@ mod imp {
} }
Event::EndFile(event) => { Event::EndFile(event) => {
event!(Level::INFO, "end file event: {event:?}");
if let Err(err) = event.reason { if let Err(err) = event.reason {
event!(Level::ERROR, "end file error: {err}"); event!(Level::ERROR, "end file error: {err}");
} }