summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2009-08-10 23:22:32 -0700
committerEric Laurent <elaurent@google.com>2009-08-11 09:43:09 -0700
commitf5aba82cb7175547c0e2a697dc5d806a7203d2fa (patch)
tree8564d48ba85748bdb281a3bcda22b41ed17c72e8 /opengl/tests/gl_basic/gl_basic.cpp
parent9e7b81943bb40b0d8d6d8b87cad40c10796864d9 (diff)
Fix issue 2046140: master: media_server crash when powering down A2DP headset while a ringtone is playing.
This is because the AudioFlinger duplicating thread is closed while the output tracks are still active. This cause the output tracks objects to be destroyed at a time where they can be in use by the destination output mixer. The fix consists in adding the OutputTrack to the track list (mTracks) of its destination thread so that a strong reference is help during the mixer processed and the track is detroyed only when safe by destination thread. Also added detection of problems when creating the output track (e.g. no more tracks in mixer). In this case the output track is not added to output track list of duplicating thread.
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions