Merge lp:~phablet-team/media-hub/fix-1479036 into lp:media-hub/stable
Proposed by
Jim Hodapp
on 2015-12-17
| Status: | Merged |
|---|---|
| Approved by: | Alfonso Sanchez-Beato on 2015-12-18 |
| Approved revision: | 173 |
| Merged at revision: | 170 |
| Proposed branch: | lp:~phablet-team/media-hub/fix-1479036 |
| Merge into: | lp:media-hub/stable |
| Diff against target: |
173 lines (+83/-23) 2 files modified
src/core/media/service_implementation.cpp (+38/-7) src/core/media/service_skeleton.cpp (+45/-16) |
| To merge this branch: | bzr merge lp:~phablet-team/media-hub/fix-1479036 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Alfonso Sanchez-Beato | 2015-12-17 | Approve on 2015-12-18 | |
|
Review via email:
|
|||
Commit Message
Fix bug #1479036 which prevents the out_of_range exception from causing media-hub-server from crashing when a player key is not found
Description of the Change
Fix bug #1479036 which prevents the out_of_range exception from causing media-hub-server from crashing when a player key is not found
To post a comment you must log in.
lp:~phablet-team/media-hub/fix-1479036
updated
on 2015-12-17
- 171. By Jim Hodapp on 2015-12-17
-
Fix formatting of 2 lines
Ouch, I forgot to save the inline comments. Anyway, the idea is to handle this returning a DBus error where possible, see previous comment.
lp:~phablet-team/media-hub/fix-1479036
updated
on 2015-12-17
- 172. By Jim Hodapp on 2015-12-17
-
Make sure to pass on the failed Player key lookup to the client when possible.
| Jim Hodapp (jhodapp) wrote : | # |
Addressed the review comments.
lp:~phablet-team/media-hub/fix-1479036
updated
on 2015-12-18
- 173. By Jim Hodapp on 2015-12-18
-
No need to catch out_of_range in set_current_player since it's handled in handle_
set_current_ player

Some issues, mostly related to handling this in the caller of these functions instead so errors can be returned in the DBus response. An example where this is already performed is in ServiceSkeleton ::handle_ set_current_ player( ).
The only exception is probably the handler of player- >on_client_ disconnected( ), as the trigger is not a DBus function in that case.