Skip to content

Commit

Permalink
log unhandled state and remove unused var
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert committed Sep 29, 2024
1 parent d23a77e commit c906457
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions components/video/VideoPlayerView.bs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -723,7 +723,6 @@ sub bufferCheck(msg)

' Stop playback and exit player
m.top.control = "stop"
m.top.backPressed = true
end if
end if

Expand Down

0 comments on commit c906457

Please sign in to comment.