summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2010-12-17 10:27:02 -0800
committerEric Laurent <elaurent@google.com>2010-12-17 10:27:02 -0800
commite7155e6bde27a581b427fb6e1c19da558d10602b (patch)
tree26f1bde2ed13b8167ad5a3e9513b748e7b0999be /graphics/java/android/renderscript/ProgramVertexFixedFunction.java
parent1c602b3ee11fcdb429527ad6a7162219a94cabbb (diff)
Fix issue 3217707.
The problem is that when the A2DP headset is disconnected, there is a transition period during which the A2DP sink pumps data at a very high pace. This makes that: 1 the audio flinger mixer thread spins and starves binder threads thus delaying the completion of the A2DP output stream shutdown 2 we read the audio http audio stream faster than normal and we reach the end of stream for audio while video is still playing if the streamed file is small enough. The fix consists in detecting abnormal short write intervals and sleep to restore a normal write pace. Change-Id: Iab127882494ab0e26266371dc0ce5c2ff6fa476e
Diffstat (limited to 'graphics/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions