
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}