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

[PVR] Fix crashes on pvr client addon install/uninstall/update. #13335

Merged
merged 1 commit into from
Jan 9, 2018

Conversation

ksooo
Copy link
Member

@ksooo ksooo commented Jan 8, 2018

When I was changing pvr client addon install/uninstall/enable/disable from reacting on synchronous methods to addon events I overlooked some important pieces, which led to all kind of weird behavior. For instance on install, both the addon event Enabled will be fired and a synchronous OnPostInstall will be called, and PVR reacted on both.

This was leading to an attempt to create the same addon instance twice, which often ended in a crash. This PR fixes this by eliminating the CPVRClient::OnPostInstall and CPVRClient::OnPostUninstall implementations and now uses events whenever possible.

The changes are runtime tested on macOS and Linux, latest Kodi master plus pvr.hts and other pvr client addons in several scenarios.

@Jalle19 do you want to take a look at the code changes?

@ksooo ksooo added Type: Fix non-breaking change which fixes an issue Component: PVR v18 Leia labels Jan 8, 2018
@ksooo ksooo added this to the L 18.0-alpha1 milestone Jan 8, 2018
@ksooo ksooo requested a review from Jalle19 January 8, 2018 21:06
@ksooo ksooo merged commit 7403b86 into xbmc:master Jan 9, 2018
@ksooo ksooo deleted the pvr-fix-addon-install branch January 9, 2018 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: PVR Type: Fix non-breaking change which fixes an issue v18 Leia
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants