[VIDEO-PLAYER][TSAM-6364]Resolved sound_manager related error 27/79527/1
authoranshu.kumar <anshu.kumar@samsung.com>
Mon, 11 Jul 2016 14:55:53 +0000 (20:25 +0530)
committeranshu.kumar <anshu.kumar@samsung.com>
Mon, 11 Jul 2016 14:55:53 +0000 (20:25 +0530)
Change-Id: If908714b41764954ae5e4047682c0758f93c5184
Signed-off-by: anshu.kumar <anshu.kumar@samsung.com>
src/core/mp-player-mgr.c

index d47e7f76fbfbf61f4f6fb9a8d91d9a34b4303f94..6cb72f30e6079708e636803c7ea8f6f61bdb51f3 100755 (executable)
@@ -784,7 +784,8 @@ mp_player_mgr_play(void *data)
 
        PLAYER_ENTER_LOG("start");
        if (ad->stream_info) {
-               error = sound_manager_acquire_focus(ad->stream_info, SOUND_STREAM_FOCUS_FOR_PLAYBACK, NULL);
+               const char *str = "music_playing";
+               error = sound_manager_acquire_focus(ad->stream_info, SOUND_STREAM_FOCUS_FOR_PLAYBACK, str);
                if (error != SOUND_MANAGER_ERROR_NONE) {
                        ERROR_TRACE("failed to acquire focus [%x]", error);
                }
@@ -878,7 +879,8 @@ mp_player_mgr_resume(void *data)
                        ERROR_TRACE("failed in sound_manager_get_focus_state");
                }
                if (state_for_playback != SOUND_STREAM_FOCUS_STATE_ACQUIRED) {
-                       error = sound_manager_acquire_focus(ad->stream_info, SOUND_STREAM_FOCUS_FOR_PLAYBACK, NULL);
+                       const char *str = "music_playing";
+                       error = sound_manager_acquire_focus(ad->stream_info, SOUND_STREAM_FOCUS_FOR_PLAYBACK, str);
                        if (error != SOUND_MANAGER_ERROR_NONE) {
                                ERROR_TRACE("failed to acquire focus [%x]", error);
                                return error;