summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2013-08-07 16:37:23 -0500
committerDenis Kenzior <denkenz@gmail.com>2013-08-07 16:37:23 -0500
commit9e112379b59c5ad64cdff63f6e125b021d5ec046 (patch)
treebbd4ab53aa3df200404fbb242ce461603b4b8c44 /src
parentb131cfde52d3cf9f1cd88c4a7685969236a02eaf (diff)
downloadofono-9e112379b59c5ad64cdff63f6e125b021d5ec046.tar.bz2
handsfree-audio: Make sure to reset has_wideband
When Agent is unregistered we do not know whether the wideband speech is supported. Default to false.
Diffstat (limited to 'src')
-rw-r--r--src/handsfree-audio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/handsfree-audio.c b/src/handsfree-audio.c
index 5179dddd..0bdeb990 100644
--- a/src/handsfree-audio.c
+++ b/src/handsfree-audio.c
@@ -598,6 +598,8 @@ static void agent_disconnect(DBusConnection *conn, void *user_data)
agent_free(agent);
agent = NULL;
+
+ has_wideband = FALSE;
}
static void append_card(void *data, void *userdata)
@@ -734,6 +736,8 @@ static DBusMessage *am_agent_unregister(DBusConnection *conn,
agent_free(agent);
agent = NULL;
+ has_wideband = FALSE;
+
DBG("Agent %s unregistered", sender);
return dbus_message_new_method_return(msg);