OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd8dda8
)
Unregister players' events when disconnected
author
Lucas De Marchi
<lucas.demarchi@profusion.mobi>
Fri, 21 Oct 2011 17:58:27 +0000
(15:58 -0200)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Sat, 22 Oct 2011 10:18:28 +0000
(12:18 +0200)
audio/avrcp.c
patch
|
blob
|
history
diff --git
a/audio/avrcp.c
b/audio/avrcp.c
index
e908bf4
..
f06afbf
100644
(file)
--- a/
audio/avrcp.c
+++ b/
audio/avrcp.c
@@
-1119,6
+1119,7
@@
static void state_changed(struct audio_device *dev, avctp_state_t old_state,
switch (new_state) {
case AVCTP_STATE_DISCONNECTED:
player->session = NULL;
+ player->registered_events = 0;
if (player->handler) {
avctp_unregister_pdu_handler(player->handler);