summaryrefslogtreecommitdiff
path: root/android/a2dp.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-01-15 15:01:01 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-01-16 16:01:40 +0200
commit1a8dba380c5ec7a22a492b00bfd5b7c67f47ef2a (patch)
tree1002903320312611192d5db9ebbaee367dfd88cc /android/a2dp.c
parent944a282821db37115e37b10abc4b8b512ab20b1d (diff)
downloadbluez-1a8dba380c5ec7a22a492b00bfd5b7c67f47ef2a.tar.gz
android/A2DP: Change to connected state when a transport open
This changes the connected state to be only sent once a transport is open, before this was done right after the signalling was connected but this reflect in the audio HAL side attempting to open a stream while with possible no transport available.
Diffstat (limited to 'android/a2dp.c')
-rw-r--r--android/a2dp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/android/a2dp.c b/android/a2dp.c
index a36e9a3eb..e3e425ce8 100644
--- a/android/a2dp.c
+++ b/android/a2dp.c
@@ -403,8 +403,6 @@ static void signaling_connect_cb(GIOChannel *chan, GError *err,
}
}
- bt_a2dp_notify_state(dev, HAL_A2DP_STATE_CONNECTED);
-
return;
failed:
@@ -546,6 +544,8 @@ static void transport_connect_cb(GIOChannel *chan, GError *err,
g_io_channel_unref(dev->io);
dev->io = NULL;
}
+
+ bt_a2dp_notify_state(dev, HAL_A2DP_STATE_CONNECTED);
}
static void connect_cb(GIOChannel *chan, GError *err, gpointer user_data)