commit | c5cb7f1fad39e64b446577b794790ac08cd24a1c | [log] [tgz] |
---|---|---|
author | Saúl Ibarra Corretgé <saghul@jitsi.org> | Fri Jul 30 14:59:41 2021 |
committer | WebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Aug 25 13:35:11 2021 |
tree | a53c454f546534c1eb22dc85273cb845d116c0e1 | |
parent | 75bbd1fbe6f9c19115bf847d7fd3977eabc1e558 [diff] |
Fix NPE if no compatible capture format was found Fatal Exception: java.lang.NullPointerException: Attempt to read from field 'int org.webrtc.CameraEnumerationAndroid$CaptureFormat.width' on a null object reference at org.webrtc.Camera2Session$CameraStateCallback.onOpened(Camera2Session.java:122) at android.hardware.camera2.impl.CameraDeviceImpl$1.run(CameraDeviceImpl.java:151) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:246) at android.os.HandlerThread.run(HandlerThread.java:67) Fix NPE when setting the camera2 stabilization mode Fatal Exception: java.lang.NullPointerException: Attempt to get length of null array at org.webrtc.Camera2Session$CaptureSessionCallback.chooseStabilizationMode(Camera2Session.java:234) at org.webrtc.Camera2Session$CaptureSessionCallback.onConfigured(Camera2Session.java:172) at android.hardware.camera2.impl.CallbackProxies$SessionStateCallbackProxy.lambda$onConfigured$0(CallbackProxies.java:53) at android.hardware.camera2.impl.-$$Lambda$CallbackProxies$SessionStateCallbackProxy$soW0qC12Osypoky6AfL3P2-TeDw.run(-.java:4) at android.os.Handler.handleCallback(Handler.java:873) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:193) at android.os.HandlerThread.run(HandlerThread.java:65) Bug: webrtc:13032 Change-Id: I6edd9f0061c445f90ab0881d78183077f89e391f Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/227294 Reviewed-by: Xavier Lepaul <xalep@webrtc.org> Commit-Queue: Xavier Lepaul <xalep@webrtc.org> Cr-Commit-Position: refs/heads/main@{#34851}
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 here for instructions on how to get started developing with the native code.
Authoritative list of directories that contain the native API header files.