From: Rahul Dadhich Date: Thu, 7 Apr 2016 11:36:30 +0000 (+0530) Subject: [TSAM-2031]Resolved ear plug issue X-Git-Tag: accepted/tizen/mobile/20160408.004602~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d1101c45ad4da023ef65c1b58aa83a7745f4d383;p=profile%2Fmobile%2Fapps%2Fnative%2Fmusic-player.git [TSAM-2031]Resolved ear plug issue Change-Id: I9d8fa72b211a6224410d3d421b4cae5317d8350f Signed-off-by: Rahul Dadhich --- diff --git a/src/common/mp-app.c b/src/common/mp-app.c index 1732032..ec9d537 100755 --- a/src/common/mp-app.c +++ b/src/common/mp-app.c @@ -254,6 +254,13 @@ _mp_add_available_route_changed_cb(sound_device_h device, bool available, void pipe_data.user_data = user_data; ecore_pipe_write(gNotiPipe, &pipe_data, sizeof(mp_app_pipe_data_s)); + + if (!available) { + struct appdata *ad = user_data; + + mp_player_mgr_pause(ad); + } + } static void _mp_app_active_device_chaged_cb(sound_device_h in, sound_device_changed_info_e out, void *user_data)