b3687ae925
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. |
||
---|---|---|
awt | ||
camera/libcameraservice | ||
cmds | ||
include | ||
libs | ||
opengl | ||
vpn/java/android/net/vpn | ||
MODULE_LICENSE_APACHE2 | ||
NOTICE |