Skip to content
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

Fix crash in mpv_set_property during termination, #3596 #3597

Closed
wants to merge 1 commit into from

Conversation

low-batt
Copy link
Contributor

The commit in the pull request will:

  • Rename the PlayerCore property isMpvTerminated to isMpvTerminating to
    reflect that termination has been initiated and being processed
    asynchronously

  • Change existing references to isMpvTerminated to use new name

  • Change PlayerCore.terminateMPV to set isMpvTerminating to true right
    before starting the termination process

  • Change PlayerCore.syncUI to do nothing if mpv is terminating

  • Change MPVController.mpvQuit to remove observers MPVController
    registered before sending the quit command to mpv

  • Change many MPVController methods to check to see if mpv is being
    terminated

  • This change has been discussed with the author.

  • It implements / fixes issue Crash in mpv_set_property during termination #3596.


Description:

The commit in the pull request will:
- Rename the PlayerCore property isMpvTerminated to isMpvTerminating to
  reflect that termination has been initiated and being processed
  asynchronously
- Change existing references to isMpvTerminated to use new name
- Change PlayerCore.terminateMPV to set isMpvTerminating to true right
  before starting the termination process
- Change PlayerCore.syncUI to do nothing if mpv is terminating
- Change MPVController.mpvQuit to remove observers MPVController
  registered before sending the quit command to mpv
- Change many MPVController methods to check to see if mpv is being
  terminated
@low-batt
Copy link
Contributor Author

Hold of reviewing this PR. I have plans to change how termination is handled that may eliminate the need for this PR.

@low-batt
Copy link
Contributor Author

Closing. A more extensive fix in PR #3961 addresses the problem in a different way by closing windows before shutting down mpv.

@low-batt low-batt closed this Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant