commit | 77a47e008120f7364b5f820418acf16cf52b3681 | [log] [tgz] |
---|---|---|
author | Yura Yaroshevich <yura.yaroshevich@gmail.com> | Wed Jan 10 13:13:39 2018 +0300 |
committer | Commit Bot <commit-bot@chromium.org> | Wed Jan 10 15:15:57 2018 +0000 |
tree | 3f1b8856855727e5a91c8cd30dcc2b821c51c0a9 | |
parent | c73e1f437889d882cbf2987f7fb3a029a6150613 [diff] |
Handle any exception in Camera.setPreviewTexture. On Meizu devices (and maybe on other devices too) when camera is disallowed in settings `android.hardware.Camera.open` returns non-null Camera instance, but when any method is invoked on `Camera` instance the `RuntimeException` is thrown. It claims that Camera instance is used after `release()` was invoked on that instance. `Camera1Session.open` didn't handle that case and crashed whole application when returned Camera instance was already released or more likely was not even properly initialized during `Camera.open`. Bug: webrtc:8685 Change-Id: I5cda397a599e87971bf9a4bd3faf6fc4a0d198f3 Reviewed-on: https://webrtc-review.googlesource.com/36300 Commit-Queue: Sami Kalliomäki <sakal@webrtc.org> Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Cr-Commit-Position: refs/heads/master@{#21556}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.
See http://www.webrtc.org/native-code/development for instructions on how to get started developing with the native code.
Authoritative list of directories that contain the native API header files.