OSDN Git Service

AudioTrack: fix obtainBuffer timeout calculation
authorEric Laurent <elaurent@google.com>
Tue, 28 Jan 2014 02:13:39 +0000 (18:13 -0800)
committerEric Laurent <elaurent@google.com>
Wed, 5 Mar 2014 22:07:43 +0000 (14:07 -0800)
commit88876fb4eb8365343f2a9ca0e8f53148ca38b845
tree7891ad7f6e93d856f4fc8b5184bf2d8c95a84ead
parent145b727b4cce8b1b8d161612f30d12bbdfc8d134
AudioTrack: fix obtainBuffer timeout calculation

AudioTrack::obtainBuffer() passes a pointer to a timeout
variable that has gone out of scope when calling
ClientProxy::obtainBuffer().

Same fix for AudioRecord.

Bug: 11968591.
Change-Id: I5b3d0d86ed2bd8c0412eb2432b1ab519d70efce9
media/libmedia/AudioRecord.cpp
media/libmedia/AudioTrack.cpp