From: keonho07.kim Date: Wed, 26 Jun 2013 13:11:42 +0000 (+0900) Subject: AudioSessionManager makes stop to audiodestination for earjack unplug and call start. X-Git-Tag: submit/tizen_2.2/20130714.131554~109 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=349eb7c44a24c3ab56a7f135893eba102f689fb5;p=framework%2Fweb%2Fwebkit-efl.git AudioSessionManager makes stop to audiodestination for earjack unplug and call start. [Title] AudioSessionManager makes stop to audiodestination for earjack unplug and call start. [Problem] N_SE-41200, N_SE-41501 [Cause] N/A [Solution] Application should handle situation of these cases. Change-Id: Ia01ffa436696945cf8106da7ff69dc761ac096c8 --- diff --git a/Source/WebCore/platform/audio/gstreamer/AudioDestinationGStreamer.cpp b/Source/WebCore/platform/audio/gstreamer/AudioDestinationGStreamer.cpp index 5ec294d..d50876e 100755 --- a/Source/WebCore/platform/audio/gstreamer/AudioDestinationGStreamer.cpp +++ b/Source/WebCore/platform/audio/gstreamer/AudioDestinationGStreamer.cpp @@ -76,13 +76,8 @@ static ASM_cb_result_t AudioDestinationAudioSessionEventSourcePause(ASM_event_so return ASM_CB_RES_IGNORE; switch (eventSource) { - case ASM_EVENT_SOURCE_CALL_START: case ASM_EVENT_SOURCE_ALARM_START: - case ASM_EVENT_SOURCE_EARJACK_UNPLUG: - case ASM_EVENT_SOURCE_MEDIA: - case ASM_EVENT_SOURCE_EMERGENCY_START: case ASM_EVENT_SOURCE_OTHER_PLAYER_APP: - case ASM_EVENT_SOURCE_RESOURCE_CONFLICT: pDestination->stop(); return ASM_CB_RES_PAUSE; default: @@ -98,6 +93,7 @@ static ASM_cb_result_t AudioDestinationAudioSessionEventSourcePlay(ASM_event_sou switch (eventSource) { case ASM_EVENT_SOURCE_ALARM_END: + case ASM_EVENT_SOURCE_OTHER_PLAYER_APP: pDestination->start(); return ASM_CB_RES_PLAYING; default: