summaryrefslogtreecommitdiff
path: root/audio/gateway.c
diff options
context:
space:
mode:
authorFrédéric Dalleau <frederic.dalleau@linux.intel.com>2011-08-22 17:30:44 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2011-08-24 14:21:12 +0300
commit9ce8d3f01e2ae179125ddf92b56214430fd23ef3 (patch)
tree27c5d5417c370f21ec0297fc9f3d078462568805 /audio/gateway.c
parent270f3bb47c4fed4f51bc9c2167aa4b3e078ba615 (diff)
downloadbluez-9ce8d3f01e2ae179125ddf92b56214430fd23ef3.tar.gz
Set state to "connecting" when AG connects.
This state is used by media.c to trigger pulseaudio configuration.
Diffstat (limited to 'audio/gateway.c')
-rw-r--r--audio/gateway.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/audio/gateway.c b/audio/gateway.c
index 425ad169d..c3c401998 100644
--- a/audio/gateway.c
+++ b/audio/gateway.c
@@ -284,6 +284,8 @@ static void rfcomm_connect_cb(GIOChannel *chan, GError *err,
goto fail;
}
+ change_state(dev, GATEWAY_STATE_CONNECTING);
+
sk = g_io_channel_unix_get_fd(chan);
gw->rfcomm = g_io_channel_ref(chan);