mirror of
https://github.com/yattee/yattee.git
synced 2026-07-20 14:22:02 +00:00
MPVBackend.stop() clears the PiP bridge callbacks on macOS to prevent crashes during window close, but the backend is reused across videos and setupPiPIfNeeded is guarded by isPiPSetUp, so the callbacks were never wired again. The next PiP session then started without notifying PlayerService (no onPiPStatusChanged), leaving the player window visible alongside the PiP window, both playing. Extract the callback wiring into wirePiPBridgeCallbacks() and re-run it in startPiP() and in setupPiPIfNeeded when already set up.