Fixed TSAM-9220 Focus callback issue 99/93799/1
authorbhutani.92 <bhutani.92@samsung.com>
Wed, 26 Oct 2016 04:32:19 +0000 (10:02 +0530)
committerbhutani.92 <bhutani.92@samsung.com>
Wed, 26 Oct 2016 04:32:19 +0000 (10:02 +0530)
Change-Id: I08b006da9fb0696a8c3355c062329de0ec08a50c
Signed-off-by: bhutani.92 <bhutani.92@samsung.com>
src/core/mp-player-mgr.c

index 26e965545b980ffdc97a453bb7a6bb11207ce58e..272971031cf2dac40e9fadd2fb5237a2814af6f1 100755 (executable)
@@ -1187,6 +1187,12 @@ void mp_player_focus_callback(sound_stream_info_h stream_info, sound_stream_focu
                        sound_manager_set_focus_reacquisition(ad->stream_info, EINA_FALSE);
                }
        } else {
+               if (ad->stream_info) {
+                       ret = sound_manager_release_focus(ad->stream_info, SOUND_STREAM_FOCUS_FOR_PLAYBACK, NULL);
+                       if (ret != SOUND_MANAGER_ERROR_NONE) {
+                               ERROR_TRACE("failed to release focus error[%x]", ret);
+                       }
+               }
                mp_play_control_play_pause(ad, true);
        }
 }