Merge lp:~parnold-x/wingpanel-indicator-sound/fix_1596270 into lp:~wingpanel-devs/wingpanel-indicator-sound/trunk
Proposed by
Djax
Status: | Merged |
---|---|
Merged at revision: | 118 |
Proposed branch: | lp:~parnold-x/wingpanel-indicator-sound/fix_1596270 |
Merge into: | lp:~wingpanel-devs/wingpanel-indicator-sound/trunk |
Diff against target: |
115 lines (+65/-18) 1 file modified
src/Widgets/MprisGui.vala (+65/-18) |
To merge this branch: | bzr merge lp:~parnold-x/wingpanel-indicator-sound/fix_1596270 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
WingPanel Devs | Pending | ||
Review via email: mp+307095@code.launchpad.net |
Commit message
prevent freezing due to mpris players
Description of the change
The freeze comes due to the fact that many MPRIS interfaces do not give a proper answer after receiving patches. The Vala DBus library always waits the default timeout before continuing, which is 25 seconds. This means blocking the whole elementary UI for 25 seconds, which is really bad.
Since the response is not from use anyways and really many players fail, this fix should be merged instead of relying on patches in the players. The best solution would be allowing 0 timeout in vala, but this does not seem to be possible.
The branch threads the DBus calls to ensure an always responsive UI.
To post a comment you must log in.