focus-server: Initialize taken id information regardless of the node condition in... 15/108915/1 accepted/tizen/common/20170109.202645 accepted/tizen/ivi/20170110.080721 accepted/tizen/mobile/20170110.080554 accepted/tizen/tv/20170110.080618 accepted/tizen/wearable/20170110.080639 submit/tizen/20170109.130136
authorSangchul Lee <sc11.lee@samsung.com>
Fri, 6 Jan 2017 07:15:33 +0000 (16:15 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Fri, 6 Jan 2017 07:50:08 +0000 (23:50 -0800)
[Version] 0.10.79
[Profile] Common
[Issue Type] Bug fix

Change-Id: If43b89b773effac18ea7afe60c4d9f1fef3500c9
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
(cherry picked from commit 6b214145dc1c73bc46e7b596e0cd0d0e21dda5f6)

focus_server/mm_sound_mgr_focus.c
packaging/libmm-sound.spec

index 58d9480..432a854 100644 (file)
@@ -762,7 +762,7 @@ int mm_sound_mgr_focus_set_reacquisition(const _mm_sound_mgr_focus_param_t *para
                                goto FINISH;
                        }
                        node->reacquisition = param->reacquisition;
-                       debug_msg("found a node to set reacquisition to (%d)\n", param->reacquisition);
+                       debug_msg("found a node(pid[%d]/handle_id[%d]) to set reacquisition to (%d)\n", node->pid, node->handle_id, param->reacquisition);
                        my_node = node;
                        break;
                }
@@ -955,7 +955,7 @@ int mm_sound_mgr_focus_request_acquire(const _mm_sound_mgr_focus_param_t *param)
 
        /* update taken information */
        for (i = 0; i < NUM_OF_STREAM_IO_TYPE; i++) {
-               if (param->request_type & (i+1) && my_node->taken_by_id[i].pid) {
+               if (param->request_type & (i+1)) {
                        UPDATE_FOCUS_TAKEN_INFO(by_id, my_node, 0, 0, false);
                        UPDATE_FOCUS_TAKEN_INFO(backup, my_node, 0, 0, false);
                }
index 1e0ddf5..a2073e8 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-sound
 Summary:    MMSound Package contains client lib and sound_server binary
-Version:    0.10.78
+Version:    0.10.79
 Release:    0
 Group:      System/Libraries
 License:    Apache-2.0