Fix focus acquired state check condition 19/145319/1 accepted/tizen/unified/20170828.164200 submit/tizen/20170828.011335
authorSangchul Lee <sc11.lee@samsung.com>
Tue, 22 Aug 2017 05:27:34 +0000 (14:27 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Tue, 22 Aug 2017 05:27:50 +0000 (14:27 +0900)
[Version] 0.4.21
[Issue Type] Enhancement

Change-Id: Ic399e2849a2467b0c933d01491f02cdf3af4ca0e
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
packaging/capi-media-sound-manager.spec
src/sound_manager.c

index d24fdd1..aa97b0c 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-sound-manager
 Summary:    Sound Manager library
-Version:    0.4.20
+Version:    0.4.21
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 83e16d6..2eead77 100644 (file)
@@ -419,7 +419,7 @@ int sound_manager_acquire_focus(sound_stream_info_h stream_info, sound_stream_fo
                goto LEAVE;
        }
 
-       if (is_focus_cb_thread && ((stream_h->prev_acquired_focus | ~stream_h->acquired_focus) & SOUND_STREAM_FOCUS_FOR_BOTH) != focus_mask) {
+       if (is_focus_cb_thread && ((stream_h->prev_acquired_focus & ~stream_h->acquired_focus) & focus_mask)) {
                LOGE("just lost focus in this callback, it is not allowed to acquire the focus[0x%x] again. acquired_focus[0x%x], prev[0x%x]",
                        focus_mask, stream_h->acquired_focus, stream_h->prev_acquired_focus);
                ret = MM_ERROR_POLICY_INTERNAL;