mirror of git://git.sysmocom.de/ofono
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:
parent
b131cfde52
commit
9e112379b5
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue