This repository has been archived by the owner on Sep 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix NSFileHandleOperationException crash, iina#3590
The fix changes IINA to wait for mpv to cleanly shutdown before proceeding with application shutdown. The commit in the pull request: - Adds a isDestroyed semaphore to MPVController - Changes MPVController.handleEvent to signal the semaphore once the mpv context has been destroyed - Adds a waitForDestruction method to MPVController to wait for mpv to be destroyed - Adds a waitForTermination method to PlayerCore that calls MPVController.waitForDestruction to wait for mpv to be destroyed - Changes AppDelegate.applicationShouldTerminate to submit a task to wait for all players to terminate - Changes applicationShouldTerminate to return terminateLater to tell the framework to hold up application termination until told to proceed
- Loading branch information
Showing
3 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters