Merge lp:~albaguirre/media-hub/fix-1368786 into lp:media-hub
Proposed by
Alberto Aguirre
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Jim Hodapp | ||||
Approved revision: | 68 | ||||
Merged at revision: | 66 | ||||
Proposed branch: | lp:~albaguirre/media-hub/fix-1368786 | ||||
Merge into: | lp:media-hub | ||||
Diff against target: |
164 lines (+20/-52) 1 file modified
src/core/media/player_implementation.cpp (+20/-52) |
||||
To merge this branch: | bzr merge lp:~albaguirre/media-hub/fix-1368786 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jim Hodapp (community) | code | Approve | |
PS Jenkins bot | continuous-integration | Approve | |
Review via email: mp+234900@code.launchpad.net |
Commit message
Fix wake lock state machine and subtle race conditions on wake lock refcounts.
Description of the change
Playing->stopped did not release the display wakelock which kept the screen on for gallery-app.
Also repeated press of play/pause of a short clip in either media-player app or gallery-app resulted in the following state transitions:
ready->pause which acquired a display wakelock
and pause->playing which acquired another display wakelock
playing->pause which releases only one count
To post a comment you must log in.
Note: I tested for regressions of https:/ /launchpad. net/bugs/ 1342351 - it still works ok, but I'd like somebody else to confirm.