From c90645777a1785f0dc90a5a53a0ae0f27c7fb341 Mon Sep 17 00:00:00 2001 From: Charles Ewert Date: Sun, 29 Sep 2024 10:57:49 -0400 Subject: [PATCH] log unhandled state and remove unused var --- components/video/VideoPlayerView.bs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/video/VideoPlayerView.bs b/components/video/VideoPlayerView.bs index bf6026db5..5850bbd94 100644 --- a/components/video/VideoPlayerView.bs +++ b/components/video/VideoPlayerView.bs @@ -637,7 +637,6 @@ sub onState(msg) ' Stop playback and exit player m.top.control = "stop" - m.top.backPressed = true else if m.top.state = "playing" ' Check if next episode is available @@ -666,7 +665,8 @@ sub onState(msg) else if m.top.state = "finished" m.playbackTimer.control = "stop" ReportPlayback("finished") - m.top.backPressed = true ' force exit from video player to set TV back to SDR + else + m.log.warning("Unhandled state", m.top.state, m.playReported, m.playFinished) end if m.log.debug("end onState()", m.top.state) end sub @@ -723,7 +723,6 @@ sub bufferCheck(msg) ' Stop playback and exit player m.top.control = "stop" - m.top.backPressed = true end if end if