-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
UPnP AV bug fixes #27521
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
base: Omega
Are you sure you want to change the base?
UPnP AV bug fixes #27521
Conversation
|
@Kate6 thanks for the fixes. It doesn't look like any upnp devs are around for review. It might help if you complete the PR template, such as with more details about the fixes, why they're needed, and how they've been tested. Try to target a dev unfamiliar with upnp, because that's pretty much all who could review this. |
|
@claude review this please |
|
Claude finished @garbear's task in 1m 22s —— View job Code Review Complete ✓I've reviewed both UPnP fixes in this PR. Overall, these are well-targeted bug fixes that address real issues. Here's my detailed analysis: Fix #1: Android UPnP Service Restart on Resume ✅File: Change: case TMSG_RESUMEAPP:
{
m_ServiceManager->GetNetwork().NetworkMessage(CNetworkBase::SERVICES_UP, 0); // Added
CGUIComponent* gui = CServiceBroker::GetGUI();
...Analysis:
Potential Concerns:
Fix #2: UI Update After Saving UPnP File State ✅File: Change: Analysis:
Implementation Quality:
Minor Observation: Overall AssessmentStrengths:
Code Quality:
Testing Recommendations:
Approval: ✅ |
|
@Kate6 now that we have both squishy and robot approvals, can you apply the Jenkins patch? Then we'll merge. |
|
|
||
| case TMSG_RESUMEAPP: | ||
| { | ||
| m_ServiceManager->GetNetwork().NetworkMessage(CNetworkBase::SERVICES_UP, 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is likely a better place for this (CApplication shouldn't call into network) but it's consistent with the current architecture so it's fine here for now.
|
@Kate6 We want CI to be happy between each commit, so can you squash the third commit into the first and force-push? Jenkins checks each commit for style-correctness so that if one is reverted, we don't get an in-between result. |
b044731 to
20959c6
Compare
|
@Kate6 Oops, you squashed your two fixes. You can recover your work here: https://github.com/Kate6/xbmc/commits/b044731e9f3f59183d7cc6692915d3d483bb9815 Then the third commit should be squashed into the first. |
After saving the file state of a UPnP item, the UI was not always reflecting the new resume point. This change ensures the UI is updated by sending a GUI_MSG_UPDATE_ITEM message with the updated file item information.
20959c6 to
528a935
Compare
Description
Two small fixes to UPnP.
Motivation and context
(1) On Android, UPnP was dying if the app was navigated away from and then resumed.
(2) Kodi wasn't handling the resume point for UPnP objects when playback was stopped consistently.
How has this been tested?
What is the effect on users?
Screenshots (if appropriate):
Types of change
Checklist: