[v0.6.19] make update acquire flag in sound focus cb 77/107077/1 accepted/tizen/common/20161227.192504 accepted/tizen/ivi/20161227.091444 accepted/tizen/mobile/20161227.091355 accepted/tizen/tv/20161227.091411 accepted/tizen/wearable/20161227.091425 submit/tizen/20161227.033947
authorEunhae Choi <eunhae1.choi@samsung.com>
Mon, 26 Dec 2016 09:38:53 +0000 (18:38 +0900)
committereunhae choi <eunhae1.choi@samsung.com>
Mon, 26 Dec 2016 10:31:11 +0000 (02:31 -0800)
Change-Id: Ibf1e2b1c14cac9db673e39f4ccdeac38617850bb
(cherry picked from commit 554f4845ddb40adc1ac2eda4217a5b8f7b2be83f)

packaging/libmm-player.spec
src/mm_player_priv.c

index 560d195aec35935dce1dfc836e27d1f156077831..a3bcdb71d15cc5c212e31bbade675dfc1e4480f0 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-player
 Summary:    Multimedia Framework Player Library
-Version:    0.6.18
+Version:    0.6.19
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index 5cc2d56091478188a1fa10b843c4088eabedffaa..4bb2f5884a99790093155afcdd8310a7b9f98ee9 100644 (file)
@@ -8366,6 +8366,8 @@ void __mmplayer_sound_focus_watch_callback(int id, mm_sound_focus_type_e focus_t
 
        if (focus_state == FOCUS_IS_ACQUIRED) {
                LOGW("watch: FOCUS_IS_ACQUIRED");
+               player->sound_focus.acquired = TRUE;
+
                if (MM_ERROR_NONE == __mmplayer_convert_sound_focus_state(FALSE, reason_for_change, &msg))
                        player->sound_focus.focus_changed_msg = (int)msg;
 
@@ -8398,6 +8400,7 @@ void __mmplayer_sound_focus_watch_callback(int id, mm_sound_focus_type_e focus_t
                }
        } else if (focus_state == FOCUS_IS_RELEASED) {
                LOGW("FOCUS_IS_RELEASED: Got msg from asm to resume");
+               player->sound_focus.acquired = FALSE;
                player->sound_focus.antishock = TRUE;
                player->sound_focus.by_asm_cb = FALSE;
 
@@ -8453,6 +8456,7 @@ __mmplayer_sound_focus_callback(int id, mm_sound_focus_type_e focus_type, mm_sou
 
        if (focus_state == FOCUS_IS_RELEASED) {
                LOGW("FOCUS_IS_RELEASED");
+               player->sound_focus.acquired = FALSE;
 
                if (MM_ERROR_NONE == __mmplayer_convert_sound_focus_state(FALSE, reason_for_change, &msg))
                        player->sound_focus.focus_changed_msg = (int)msg;
@@ -8486,6 +8490,7 @@ __mmplayer_sound_focus_callback(int id, mm_sound_focus_type_e focus_type, mm_sou
                }
        } else if (focus_state == FOCUS_IS_ACQUIRED) {
                LOGW("FOCUS_IS_ACQUIRED: Got msg from asm to resume");
+               player->sound_focus.acquired = TRUE;
                player->sound_focus.antishock = TRUE;
                player->sound_focus.by_asm_cb = FALSE;