Repository navigation
Bug Fixes
-
queue: prevent orphaned suppress count when skip races with natural track finish (ba0eaef)
When a track finishes naturally at the exact moment
skip()is called, anidle-activeevent could fire during an internalawait, clearing mpv's track state while the queue still thought something was playing. This causedsuppressNextStoppedto increment without a matching stop IPC command, silently swallowing the next track's finish event and freezing auto-advance (stuck at duration 0).Fixes:
- Guard
suppressNextStopped + stoponmpv.getCurrentTrack()instead of queue state to prevent orphaned suppress count - Add playback generation counter to discard stale
handleStoppedcallbacks after skip/replace/stop-reset
- Guard