From 15c6d7121845af6f01a3e848ced3ee7951927a7a Mon Sep 17 00:00:00 2001 From: Amit Purwar Date: Wed, 4 Apr 2018 17:37:48 +0530 Subject: [PATCH] Fix A2DP Sink device disconnect after pause and play Change-Id: I35ced6cb1ef63f430c2120e3edc680e767929ea0 Signed-off-by: Amit Purwar --- profiles/audio/a2dp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/profiles/audio/a2dp.c b/profiles/audio/a2dp.c index 787989d..0619bb1 100644 --- a/profiles/audio/a2dp.c +++ b/profiles/audio/a2dp.c @@ -914,12 +914,12 @@ static gboolean start_ind(struct avdtp *session, struct avdtp_local_sep *sep, #ifdef TIZEN_FEATURE_BLUEZ_MODIFY if (!a2dp_sep->locked) { - a2dp_sep->session = avdtp_ref(session); - if(a2dp_sep->remote_suspended == FALSE) + if (a2dp_sep->remote_suspended == FALSE) { + a2dp_sep->session = avdtp_ref(session); a2dp_sep->suspend_timer = g_timeout_add_seconds(SUSPEND_TIMEOUT, (GSourceFunc) suspend_timeout, a2dp_sep); - else + } else a2dp_sep->remote_suspended = FALSE; } #else -- 2.7.4