From c25226f7c2dd7b714f726159071b861c9b60fc9f Mon Sep 17 00:00:00 2001 From: Erica Z Date: Tue, 5 Nov 2024 10:52:33 +0100 Subject: [PATCH] log some more bullshit --- src/ui/window.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/ui/window.rs b/src/ui/window.rs index 0c73099..7b78e55 100644 --- a/src/ui/window.rs +++ b/src/ui/window.rs @@ -246,7 +246,15 @@ mod imp { // ^ ignore } + Event::Seek => { + event!(Level::INFO, "seek event"); + // TODO: if doing "buffering" progress bar, show it after a timeout here + } + 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() { // a seek was tried before and failed, try again now event!(Level::INFO, "performing queued seek to {queued_seek}"); @@ -255,6 +263,8 @@ mod imp { } Event::EndFile(event) => { + event!(Level::INFO, "end file event: {event:?}"); + if let Err(err) = event.reason { event!(Level::ERROR, "end file error: {err}"); }