handle switch players while in pendingLoadPaused state

This commit is contained in:
Drew Weymouth
2026-03-05 06:59:28 -08:00
parent cfcd7a52e4
commit 02e12b3cbe
+5 -1
View File
@@ -196,9 +196,13 @@ func (p *playbackEngine) SetPlayer(pl player.BasePlayer) error {
needToUnpause := false
stat := p.CurrentPlayer().GetStatus()
if p.pendingPlayerChange {
if p.pendingPlayerChange || p.pendingLoadPaused {
stat.State = player.Paused
}
if p.pendingLoadPaused {
stat.TimePos = p.pendingLoadStartTime
stat.Duration = p.curTrackDuration
}
switch stat.State {
case player.Stopped: