Check my node with is_for_session parameter 99/104099/1 accepted/tizen/common/20161212.185717 accepted/tizen/ivi/20161213.003530 accepted/tizen/mobile/20161213.003439 accepted/tizen/tv/20161213.003453 accepted/tizen/wearable/20161213.003515 submit/tizen/20161212.134937
authorSangchul Lee <sc11.lee@samsung.com>
Tue, 6 Dec 2016 06:13:03 +0000 (15:13 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Mon, 12 Dec 2016 09:26:05 +0000 (01:26 -0800)
commit32c9735b8cc6e3ab0a82bdaf09dbeaa497436d2d
tree71eac439572dcc9d3776156db51c8eacd7ba5114
parentd6f179b8e6bafe69bd30fc09fdb5d2c01ce585c8
Check my node with is_for_session parameter

An error can occur when registering a focus node via sound-manager
if there already exists a node with the same index of the same process.
Because a node which is requested by sound-manager uses pulseaudio context id
whereas an internal focus node for session backward compatibility uses index
counted by focus_server itself.
This patch distinguishes both cases and ensures normal operation in this case.

[Version] 0.10.69
[Profile] Common
[Issue Type] Bug fix

Change-Id: Icbc9ec96940ea42bdb5cafa8d849f5cd767cc03c
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
(cherry picked from commit 049364a3f660ab9a94ca9afe5929e94ed2763eb1)
focus_server/include/mm_sound_mgr_focus_ipc.h
focus_server/mm_sound_mgr_focus.c
focus_server/mm_sound_mgr_focus_dbus.c
focus_server/mm_sound_mgr_focus_ipc.c
packaging/libmm-sound.spec