commit | 75a025562791046c53ee5a00bee77e404a33549b | [log] [tgz] |
---|---|---|
author | Per <perkj@chromium.org> | Fri Mar 27 11:15:19 2015 +0100 |
committer | Per <perkj@chromium.org> | Fri Mar 27 10:15:27 2015 +0000 |
tree | 862852f22ee9ff840681915ced92027c6e4263ca | |
parent | 8324b525dce2c502bbd24b3946bbae207645cde9 [diff] |
Handle borked Android cameras gracefully. It turns out that Camera.getCameraInfo can throw an exception if the camera does not work. TESTED=added a throw before all calls to Camera.open and Camera.getCameraInfo and made sure APPRtcDemo does not crash. BUG=4371 R=glaznev@webrtc.org, magjed@webrtc.org Review URL: https://webrtc-codereview.appspot.com/44909004 Cr-Commit-Position: refs/heads/master@{#8876}