-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
IINA sometimes takes a few seconds to quit #4227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This commit will change the PlayerCore methods closeMainWindow and errorOpeningFileAndCloseMainWindow to set the isStopped property to true. These methods are called by MPVController when the mpv property idle-active changes to true. This marks idle payers as stopped so that the applicationShouldTerminate method in AppDelegate will detect they are stopped and can be shutdown.
AnalysisThe problem is related to the non-standard behavior of the mpv In the case at hand IINA is sending a // Instruct any players that are already stopped to start shutting down.
for player in PlayerCore.playerCores {
if player.isStopped && !player.isShutdown {
player.shutdown()
}
} Playback stopped naturally at the end of the file. Likely mpv did not process the FixingThe commit in the pull request will change the |
This commit will change the PlayerCore methods closeMainWindow and errorOpeningFileAndCloseMainWindow to set the isStopped property to true. These methods are called by MPVController when the mpv property idle-active changes to true. This marks idle payers as stopped so that the applicationShouldTerminate method in AppDelegate will detect they are stopped and can be shutdown.
This commit will change the PlayerCore methods closeMainWindow and errorOpeningFileAndCloseMainWindow to set the isStopped property to true. These methods are called by MPVController when the mpv property idle-active changes to true. This marks idle payers as stopped so that the applicationShouldTerminate method in AppDelegate will detect they are stopped and can be shutdown.
This commit will change the PlayerCore methods closeMainWindow and errorOpeningFileAndCloseMainWindow to set the isStopped property to true. These methods are called by MPVController when the mpv property idle-active changes to true. This marks idle payers as stopped so that the applicationShouldTerminate method in AppDelegate will detect they are stopped and can be shutdown.
The fix for this issue has been merged into the IINA Should you wish to confirm the fix is working and do not have the ability to build IINA from the sources in the The ability to disable this GitHub automatic closing action has been requested by GitHub users (discussions #23476 and #17308 for example), but so far GitHub has not implemented a way to control this behavior. |
IINA 1.3.2 contains the fix for this issue. |
System and IINA version:
Expected behavior:
After being asked to quit the IINA application shuts down fairly quickly.
Actual behavior:
Sometimes IINA takes a few seconds to shutdown.
IINA log:
Steps to reproduce:
Keep window open after playback finishes
inGeneral/Behavior
is disabledPlay next item automatically
inGeneral/Playlist
is enabledquit
How often does this happen?
Everytime with the given steps.
The text was updated successfully, but these errors were encountered: