Skip to content

Commit

Permalink
[PVR] Fix: pvr client addons must be reloaded on profile switch to re…
Browse files Browse the repository at this point in the history
…-read addon config etc.
  • Loading branch information
ksooo committed Sep 28, 2016
1 parent f75cc2c commit c7e430e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions xbmc/pvr/addons/PVRClients.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,7 @@ void CPVRClients::UpdateAddons(void)
PVR_CLIENT pvrclient = std::dynamic_pointer_cast<CPVRClient>(addon);
if (!pvrclient)
{
CLog::Log(LOGERROR, "CPVRClients::UpdateAndInitialiseClients - severe error, incorrect add type");
CLog::Log(LOGERROR, "CPVRClients - %s - severe error, incorrect add-on type", __FUNCTION__);
continue;
}
status = pvrclient.get()->Create(iClientId);
Expand All @@ -1164,9 +1164,10 @@ void CPVRClients::UpdateAddons(void)
}
}
}
else if (!bEnabled && IsCreatedClient(addon))
else if (IsCreatedClient(addon))
{
StopClient(addon, false);
// stop add-on if it's no longer enabled, restart add-on if it's still enabled
StopClient(addon, bEnabled);
}
}

Expand Down

0 comments on commit c7e430e

Please sign in to comment.