OSDN Git Service

Fix race in AudioSystem::getInputBufferSize
authorGlenn Kasten <gkasten@google.com>
Tue, 10 Jan 2012 17:01:19 +0000 (09:01 -0800)
committerGlenn Kasten <gkasten@google.com>
Tue, 10 Jan 2012 23:43:48 +0000 (15:43 -0800)
commitf8c1a6f7ef515810356816b50bfe18af95f3ec32
tree39adc0cad7ded05219a3d4ca9f9388511bbe7c97
parentc1dc1cb1d1eaf84e88669f1a5f22579a0d9237c2
Fix race in AudioSystem::getInputBufferSize

It was caching the recording parameters without a mutex.

Change-Id: Ic4b9f621cbc080d224c2233cf3ca3454fc0f19bd
media/libmedia/AudioSystem.cpp