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.
This commit is contained in:
Denis Kenzior 2013-08-07 16:37:23 -05:00
parent b131cfde52
commit 9e112379b5
1 changed files with 4 additions and 0 deletions

View File

@ -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);