projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b131cfd
)
handsfree-audio: Make sure to reset has_wideband
author
Denis Kenzior
<denkenz@gmail.com>
Wed, 7 Aug 2013 21:37:23 +0000
(16:37 -0500)
committer
Denis Kenzior
<denkenz@gmail.com>
Wed, 7 Aug 2013 21:37:23 +0000
(16:37 -0500)
When Agent is unregistered we do not know whether the wideband speech is
supported. Default to false.
src/handsfree-audio.c
patch
|
blob
|
history
diff --git
a/src/handsfree-audio.c
b/src/handsfree-audio.c
index
5179ddd
..
0bdeb99
100644
(file)
--- 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);