diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2012-06-15 17:41:35 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-06-15 17:49:25 +0300 |
commit | ef539d84618d5b5af9d9bb224c900140e38408e9 (patch) | |
tree | 61db6954eb536e21788d0f8b1309fe5cb26a183a | |
parent | c5bf6d662b9cf3d2ebd7559c10098a199f1b7bd0 (diff) | |
download | bluez-ef539d84618d5b5af9d9bb224c900140e38408e9.tar.gz |
audio: Fix handling of A2DP open indication
When accepting the open indication all config callbacks should be
notified that open completed.
-rw-r--r-- | audio/a2dp.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/audio/a2dp.c b/audio/a2dp.c index fa97645df..64de24aaa 100644 --- a/audio/a2dp.c +++ b/audio/a2dp.c @@ -883,11 +883,22 @@ static gboolean open_ind(struct avdtp *session, struct avdtp_local_sep *sep, void *user_data) { struct a2dp_sep *a2dp_sep = user_data; + struct a2dp_setup *setup; if (a2dp_sep->type == AVDTP_SEP_TYPE_SINK) DBG("Sink %p: Open_Ind", sep); else DBG("Source %p: Open_Ind", sep); + + setup = find_setup_by_session(session); + if (!setup) + return TRUE; + + if (setup->reconfigure) + setup->reconfigure = FALSE; + + finalize_config(setup); + return TRUE; } |