summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraravind.gara <aravind.gara@samsung.com>2016-11-22 15:12:49 +0900
committeraravind.gara <aravind.gara@samsung.com>2016-11-29 11:48:12 +0900
commit9e6d9195472695c213fa699aa811c57042565be7 (patch)
tree82bc9c69e0106933e428a3ddd21246b307e9f613
parent41c58bfcb5ddd4c4d3f0f1c0597a4567c0bca6ba (diff)
downloadquickpanel-9e6d9195472695c213fa699aa811c57042565be7.tar.gz
quickpanel-9e6d9195472695c213fa699aa811c57042565be7.tar.bz2
quickpanel-9e6d9195472695c213fa699aa811c57042565be7.zip
Change-Id: Idfa17066045916b21ca06a5d5fab9bf3b74ee1e5 Signed-off-by: aravind.gara <aravind.gara@samsung.com>
-rwxr-xr-xdaemon/media.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/daemon/media.c b/daemon/media.c
index 916d391..ca5b105 100755
--- a/daemon/media.c
+++ b/daemon/media.c
@@ -105,7 +105,7 @@ static void _quickpanel_player_free_job_cb(void *data)
ret = sound_manager_get_focus_state(s_info.stream_info, &state_for_playback, NULL);
if (state_for_playback == SOUND_STREAM_FOCUS_STATE_ACQUIRED) {
- ret = sound_manager_release_focus(s_info.stream_info, SOUND_STREAM_FOCUS_FOR_PLAYBACK, NULL);
+ ret = sound_manager_release_focus(s_info.stream_info, SOUND_STREAM_FOCUS_FOR_PLAYBACK, SOUND_BEHAVIOR_NONE, NULL);
if (ret != SOUND_MANAGER_ERROR_NONE) {
ERR("sound_manager_release_focus() get failed : %d", ret);
}
@@ -186,7 +186,9 @@ HAPI int quickpanel_media_player_is_drm_error(int error_code)
}
-static void _quickpanel_sound_stream_focus_state_changed_cb(sound_stream_info_h stream_info, sound_stream_focus_change_reason_e reason_for_change, const char *additional_info, void *user_data)
+static void _quickpanel_sound_stream_focus_state_changed_cb(sound_stream_info_h stream_info, sound_stream_focus_mask_e focus_mask,
+ sound_stream_focus_state_e focus_state, sound_stream_focus_change_reason_e reason_for_change,
+ int sound_behavior, const char *additional_info, void *user_data)
{
DBG("_quickpanel_sound_stream_focus_state_changed_cb called, reason_for_change [%d], additional_info [%s]", reason_for_change, additional_info);
@@ -239,7 +241,7 @@ HAPI int quickpanel_media_player_play(sound_type_e sound_type, const char *sound
return sndRet;
}
- sndRet = sound_manager_acquire_focus(*stream_info, SOUND_STREAM_FOCUS_FOR_PLAYBACK, NULL);
+ sndRet = sound_manager_acquire_focus(*stream_info, SOUND_STREAM_FOCUS_FOR_PLAYBACK, SOUND_BEHAVIOR_NONE, NULL);
if (sndRet != SOUND_MANAGER_ERROR_NONE) {
ERR("sound_manager_acquire_focus() get failed : %d", ret);
return sndRet;