From 349eb7c44a24c3ab56a7f135893eba102f689fb5 Mon Sep 17 00:00:00 2001 From: "keonho07.kim" Date: Wed, 26 Jun 2013 22:11:42 +0900 Subject: [PATCH] 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 --- .../WebCore/platform/audio/gstreamer/AudioDestinationGStreamer.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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: -- 2.7.4