From 85cc9762233422a254d21ed78a5ead88fc652291 Mon Sep 17 00:00:00 2001 From: dh79pyun Date: Wed, 3 Nov 2021 11:38:43 +0900 Subject: [PATCH] Fix A2DP sink disconnection issue on streaming The logic of disconnect_timeout was changed in bluez 5.55. So we should modify Tizen specific logic for that. Change-Id: Ic54b39d08b7f403407ae7dfa9ca6c9207bb1c4c5 Signed-off-by: dh79pyun --- profiles/audio/avdtp.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/profiles/audio/avdtp.c b/profiles/audio/avdtp.c index 9cfe5a1..9298ae1 100644 --- a/profiles/audio/avdtp.c +++ b/profiles/audio/avdtp.c @@ -1511,8 +1511,12 @@ static gboolean disconnect_timeout(gpointer user_data) bdaddr = device_get_address(session->device); if (adapter && bdaddr) device = btd_adapter_find_device(adapter, bdaddr, BDADDR_BREDR); - if (!device) - error("device is NOT found"); + if (device) { + DBG("device exists"); + goto done; + } + + error("device is NOT found"); } #endif -- 2.7.4