Check my node with is_for_session parameter 97/102597/1 accepted/tizen/3.0/common/20161213.163709 accepted/tizen/3.0/ivi/20161213.024757 accepted/tizen/3.0/mobile/20161213.024721 accepted/tizen/3.0/tv/20161213.024736 accepted/tizen/3.0/wearable/20161213.024743 submit/tizen_3.0/20161212.092815
authorSangchul Lee <sc11.lee@samsung.com>
Tue, 6 Dec 2016 06:13:03 +0000 (15:13 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Tue, 6 Dec 2016 07:17:23 +0000 (16:17 +0900)
commit049364a3f660ab9a94ca9afe5929e94ed2763eb1
treef25d272e69afeefe90aafa8f424a28b5d99bbe43
parentf8e9bfe6e4710fbf933ceda48338beb083a6efd4
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>
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