From: Amit Purwar Date: Wed, 4 Apr 2018 12:07:48 +0000 (+0530) Subject: Fix A2DP Sink device disconnect after pause and play X-Git-Tag: accepted/tizen/unified/20180411.065612~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F61%2F174861%2F3;p=platform%2Fupstream%2Fbluez.git Fix A2DP Sink device disconnect after pause and play Change-Id: I35ced6cb1ef63f430c2120e3edc680e767929ea0 Signed-off-by: Amit Purwar --- 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