summaryrefslogtreecommitdiff
path: root/opengl/tests/gl2_basic/gl2_basic.cpp
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2009-09-15 07:10:12 -0700
committerEric Laurent <elaurent@google.com>2009-09-15 07:10:12 -0700
commitb3687ae925280a7addfaa0b724218bf8db197725 (patch)
tree025c297f138df00c11e1bd7474242def1cc06891 /opengl/tests/gl2_basic/gl2_basic.cpp
parentf5733b2938151fda955f01d9dc3ad15f7292604d (diff)
Fix issue 2118464: cannot play ring tones and notifications after disconnecting BT headset while in call.
The problem comes from the fact that when the duplicated output is closed after BT headset disconnection, the OUTPUT_CLOSED notification is not sent to AudioSystem. Then the mapping between notification stream and duplicated output cached in AudioSystem is not cleared and next time a notification is played, the duplicated output is selected and the createTrack() request is refused by AudioFlinger as the selected output doesn't exist. The notification is ignored by AudioFlinger because when it is sent by the terminating playback thread, the thread has already been removed from the playback thread list. The fix consists in sending the notification in closeOutput() and not when exiting the playback thread. The same fix is applied to record threads.
Diffstat (limited to 'opengl/tests/gl2_basic/gl2_basic.cpp')
0 files changed, 0 insertions, 0 deletions