diff options
author | jiabin <jiabin@google.com> | 2019-05-07 14:26:40 -0700 |
---|---|---|
committer | jiabin <jiabin@google.com> | 2019-05-08 15:19:13 -0700 |
commit | c1de2dfe8602f10ed3086ab601b626bec632b198 (patch) | |
tree | 68241794ce067005b2770a31b232588ecb4c33fc /services/audioflinger/Effects.cpp | |
parent | a8cc6d418bdf459a0c0f79326b09faa45645850c (diff) | |
download | frameworks_av-c1de2dfe8602f10ed3086ab601b626bec632b198.tar.gz frameworks_av-c1de2dfe8602f10ed3086ab601b626bec632b198.tar.bz2 frameworks_av-c1de2dfe8602f10ed3086ab601b626bec632b198.zip |
Fix NPE when trying to get input device for attributes.
1. Return error when remote submix device is null. Remote submix device
could be null in some case, such as device address error. Returning
error to avoid native crash.
2. Unregister policy mix if set device connection fails. In that case,
get input device could fail when policy mix is not found.
Bug: 131906484
Test: Manually
Change-Id: I03ab2bf217341b672c14adfba96d92ad9b453b01
Diffstat (limited to 'services/audioflinger/Effects.cpp')
0 files changed, 0 insertions, 0 deletions