focus-server: Initialize taken id information regardless of the node condition in... 10/108910/1 accepted/tizen/3.0/common/20170109.195755 accepted/tizen/3.0/ivi/20170109.003423 accepted/tizen/3.0/mobile/20170109.003337 accepted/tizen/3.0/tv/20170109.003357 accepted/tizen/3.0/wearable/20170109.003408 submit/tizen_3.0/20170106.062231
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:24:34 +0000 (16:24 +0900)
[Version] 0.10.79
[Profile] Common
[Issue Type] Bug fix

Change-Id: If43b89b773effac18ea7afe60c4d9f1fef3500c9
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
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