diff options
author | Glenn Kasten <gkasten@google.com> | 2012-05-02 10:34:59 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-05-02 10:37:55 -0700 |
commit | f4022f90db5acb680870db8c1150b673cdd211d9 (patch) | |
tree | 0ffaec361f808d5710d42298fa7d01873771cf6c /media | |
parent | 2c3297ab6c4daaaa7b27eed8418c64cf168fe2a1 (diff) | |
download | frameworks_av-f4022f90db5acb680870db8c1150b673cdd211d9.zip frameworks_av-f4022f90db5acb680870db8c1150b673cdd211d9.tar.gz frameworks_av-f4022f90db5acb680870db8c1150b673cdd211d9.tar.bz2 |
Fix race in AudioTrack destruction
Bug: 6427369
Change-Id: Id3b4487406235b881f6f0b4b95c5a02a9b797e75
Diffstat (limited to 'media')
-rw-r--r-- | media/libmedia/AudioTrack.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libmedia/AudioTrack.cpp b/media/libmedia/AudioTrack.cpp index 9391d16..b5b7adc 100644 --- a/media/libmedia/AudioTrack.cpp +++ b/media/libmedia/AudioTrack.cpp @@ -1461,7 +1461,7 @@ void AudioTrack::AudioTrackThread::requestExit() { // must be in this order to avoid a race condition Thread::requestExit(); - mMyCond.signal(); + resume(); } void AudioTrack::AudioTrackThread::pause() |