mirror of
https://github.com/yattee/yattee.git
synced 2026-11-02 01:47:18 +00:00
The heat in the iOS 27.2 TestFlight report (~36% CPU for 85 minutes with playback paused) started right after an audio route change while paused: mpv's ao_avfoundation logged "restarting due to system notification" and an unnamed thread went to ~36% immediately, still in the foreground. Its restart handler calls stop() then start() regardless of pause state; start() sets the synchronizer rate to 1 and requests media data, but paused mpv supplies no samples, so the empty renderer re-requests in a tight loop and the running renderer keeps iOS from suspending the app. When that log line arrives and mpv is paused, issue ao-reload so the AO is rebuilt paused. (The display link guard in the previous commit did not reproduce the spin when tested on a device.)