commit | d83b08ac54d11ed557b3cff9fef60dfa84386550 | [log] [tgz] |
---|---|---|
author | Kevin Rocard <krocard@google.com> | Wed Feb 27 15:05:54 2019 -0800 |
committer | Kevin Rocard <krocard@google.com> | Thu Feb 28 00:26:13 2019 +0000 |
tree | 4903cccde055fb89cfa7d6558c6b22a64113a381 | |
parent | e1e9cad4d0c7c9825b7f29ebc082dfcbdcace25c [diff] |
Audioflinger: Do not intercept if no audio This was not efficient and leaded to an assert in obtainBuffer. I'm not sure which condition can lead to a getNextBuffer of size 0, but it has been observed and is not forbidden by getNextBuffer documentation. Test: atest android.media.cts.AudioPlaybackCaptureTest#testCaptureMediaUsage Bug: 111453086 Change-Id: I5accf7c1d488ff4686272588329bab71d64f67cd Signed-off-by: Kevin Rocard <krocard@google.com>