diff options
author | Haynes Mathew George <hgeorge@codeaurora.org> | 2016-05-03 16:34:26 -0700 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2016-08-19 13:38:26 -0700 |
commit | 6fde774471629832951e9b9b2e0d758e10f6431d (patch) | |
tree | 202a0a2571d532a9980d33b16abf8dfb79ed2f9f /services/audioflinger/AudioResampler.cpp | |
parent | e72652f039b9067f9e747d70184507d41ef1f6d7 (diff) | |
download | frameworks_av-6fde774471629832951e9b9b2e0d758e10f6431d.zip frameworks_av-6fde774471629832951e9b9b2e0d758e10f6431d.tar.gz frameworks_av-6fde774471629832951e9b9b2e0d758e10f6431d.tar.bz2 |
audioflinger: set flush pending on invalidating offload track
On invalidating an offload track, the IAudioTrack instance is
destroyed and the offload output is released. If it so happens
that APM::getOutputForAttr for the new IAudioTrack is called before
OffloadThread::prepareTracks_l checks and removes an invalid track,
the same output can get reused.
The side effect of this is data present in HAL and below from before the
invalidate will be rendered before data from the new seek position
is rendered. This is unexpected.
To fix this, set hint to issue flush when an offload track is invalidated.
Bug: 28566885
CRs-Fixed: 1002438
Change-Id: Ib6c38a3abb600598b87591bac90d03b7150d5216
Diffstat (limited to 'services/audioflinger/AudioResampler.cpp')
0 files changed, 0 insertions, 0 deletions