|
|
Created:
4 years, 9 months ago by magjed_webrtc Modified:
4 years, 9 months ago Reviewers:
perkj_webrtc CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com Base URL:
https://chromium.googlesource.com/external/webrtc.git@master Target Ref:
refs/pending/heads/master Project:
webrtc Visibility:
Public. |
DescriptionAndroid VideoCapturerAndroid: Move stopListening() call to stopCaptureOnCameraThread()
switchCamera() only calls stopCaptureOnCameraThread(), not
stopCapture(), so the stopListening() call must be placed there.
BUG=webrtc:5519
,b/27497950
R=perkj@webrtc.org
Committed: https://crrev.com/1ae6a459868917c8c2bb3cc8080192abc4f4bbb2
Cr-Commit-Position: refs/heads/master@{#11917}
Patch Set 1 #
Messages
Total messages: 15 (9 generated)
Description was changed from ========== Android VideoCapturerAndroid: Move SurfaceTextureHelper.stopListening() from stopCapture() to stopCaptureOnCameraThread() In switchCamera(), we only call stopCaptureOnCameraThread() not stopCapture(), so the stopListening() call must be placed there. The call to SurfaceTextureHelper.startListening() throws an exception when stopListening() has not been called previously, but that exception is swallowed by the try-reopening-the-camera-3-times logic. That's why the tests don't fail. The call to onCameraSwitchDone() should probably be placed at the same place as onCapturerStarted(), not immediately after the call to switchCameraOnCameraThread() which might fail and try to reopen the camera. I will address that in a follow-up CL. BUG=webrtc:5519,b/27497950 ========== to ========== Android VideoCapturerAndroid: Move SurfaceTextureHelper.stopListening() from stopCapture() to stopCaptureOnCameraThread() switchCamera() only calls stopCaptureOnCameraThread(), not stopCapture(), so the stopListening() call must be placed there. The call to SurfaceTextureHelper.startListening() throws an exception when stopListening() has not been called previously, but that exception is swallowed by the try-reopening-the-camera-3-times logic. That's why the tests don't fail. The call to onCameraSwitchDone() should probably be placed at the same place as onCapturerStarted(), not immediately after the call to switchCameraOnCameraThread() which might fail and try to reopen the camera. I will address this issue in a follow-up CL so the tests will catch similar issues in the future. BUG=webrtc:5519,b/27497950 ==========
Description was changed from ========== Android VideoCapturerAndroid: Move SurfaceTextureHelper.stopListening() from stopCapture() to stopCaptureOnCameraThread() switchCamera() only calls stopCaptureOnCameraThread(), not stopCapture(), so the stopListening() call must be placed there. The call to SurfaceTextureHelper.startListening() throws an exception when stopListening() has not been called previously, but that exception is swallowed by the try-reopening-the-camera-3-times logic. That's why the tests don't fail. The call to onCameraSwitchDone() should probably be placed at the same place as onCapturerStarted(), not immediately after the call to switchCameraOnCameraThread() which might fail and try to reopen the camera. I will address this issue in a follow-up CL so the tests will catch similar issues in the future. BUG=webrtc:5519,b/27497950 ========== to ========== Android VideoCapturerAndroid: Move SurfaceTextureHelper.stopListening() from stopCapture() to stopCaptureOnCameraThread() switchCamera() only calls stopCaptureOnCameraThread(), not stopCapture(), so the stopListening() call must be placed there. BUG=webrtc:5519,b/27497950 ==========
magjed@webrtc.org changed reviewers: + perkj@webrtc.org
Description was changed from ========== Android VideoCapturerAndroid: Move SurfaceTextureHelper.stopListening() from stopCapture() to stopCaptureOnCameraThread() switchCamera() only calls stopCaptureOnCameraThread(), not stopCapture(), so the stopListening() call must be placed there. BUG=webrtc:5519,b/27497950 ========== to ========== Android VideoCapturerAndroid: Move stopListening() call to stopCaptureOnCameraThread() switchCamera() only calls stopCaptureOnCameraThread(), not stopCapture(), so the stopListening() call must be placed there. BUG=webrtc:5519,b/27497950 ==========
Description was changed from ========== Android VideoCapturerAndroid: Move stopListening() call to stopCaptureOnCameraThread() switchCamera() only calls stopCaptureOnCameraThread(), not stopCapture(), so the stopListening() call must be placed there. BUG=webrtc:5519,b/27497950 ========== to ========== Android VideoCapturerAndroid: Move stopListening() call to stopCaptureOnCameraThread() switchCamera() only calls stopCaptureOnCameraThread(), not stopCapture(), so the stopListening() call must be placed there. BUG=webrtc:5519,b/27497950 ==========
perkj - Please take a look.
On 2016/03/08 15:24:48, magjed_webrtc wrote: > perkj - Please take a look. a of course.... lgtm
The CQ bit was checked by perkj@webrtc.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1770423002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1770423002/1
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL)
Description was changed from ========== Android VideoCapturerAndroid: Move stopListening() call to stopCaptureOnCameraThread() switchCamera() only calls stopCaptureOnCameraThread(), not stopCapture(), so the stopListening() call must be placed there. BUG=webrtc:5519,b/27497950 ========== to ========== Android VideoCapturerAndroid: Move stopListening() call to stopCaptureOnCameraThread() switchCamera() only calls stopCaptureOnCameraThread(), not stopCapture(), so the stopListening() call must be placed there. BUG=webrtc:5519,b/27497950 R=perkj@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/1ae6a459868917c8c2bb3cc80... ==========
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as 1ae6a459868917c8c2bb3cc8080192abc4f4bbb2 (presubmit successful).
Message was sent while issue was closed.
Description was changed from ========== Android VideoCapturerAndroid: Move stopListening() call to stopCaptureOnCameraThread() switchCamera() only calls stopCaptureOnCameraThread(), not stopCapture(), so the stopListening() call must be placed there. BUG=webrtc:5519,b/27497950 R=perkj@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/1ae6a459868917c8c2bb3cc80... ========== to ========== Android VideoCapturerAndroid: Move stopListening() call to stopCaptureOnCameraThread() switchCamera() only calls stopCaptureOnCameraThread(), not stopCapture(), so the stopListening() call must be placed there. BUG=webrtc:5519,b/27497950 R=perkj@webrtc.org Committed: https://crrev.com/1ae6a459868917c8c2bb3cc8080192abc4f4bbb2 Cr-Commit-Position: refs/heads/master@{#11917} ==========
Message was sent while issue was closed.
Patchset 1 (id:??) landed as https://crrev.com/1ae6a459868917c8c2bb3cc8080192abc4f4bbb2 Cr-Commit-Position: refs/heads/master@{#11917} |