mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-13 05:40:42 +01:00
In VideoCaptureDS::{Start|Stop}Capture do not lock
Sequence- and RaceCheckers ensure thread safety, and show that these locks protect nothing. Bug: webrtc:15181 Change-Id: I7c26cd9aea5fa72ad9435de5ec1b9135ac22b1e8 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/305649 Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Commit-Queue: Ilya Nikolaevskiy <ilnik@webrtc.org> Reviewed-by: Per Kjellander <perkj@webrtc.org> Cr-Commit-Position: refs/heads/main@{#40345}
This commit is contained in:
parent
fc68f1f7d9
commit
dcf600d7a5
1 changed files with 0 additions and 2 deletions
|
@ -125,7 +125,6 @@ int32_t VideoCaptureDS::Init(const char* deviceUniqueIdUTF8) {
|
|||
|
||||
int32_t VideoCaptureDS::StartCapture(const VideoCaptureCapability& capability) {
|
||||
RTC_DCHECK_RUN_ON(&api_checker_);
|
||||
MutexLock lock(&api_lock_);
|
||||
|
||||
if (capability != _requestedCapability) {
|
||||
DisconnectGraph();
|
||||
|
@ -150,7 +149,6 @@ int32_t VideoCaptureDS::StartCapture(const VideoCaptureCapability& capability) {
|
|||
|
||||
int32_t VideoCaptureDS::StopCapture() {
|
||||
RTC_DCHECK_RUN_ON(&api_checker_);
|
||||
MutexLock lock(&api_lock_);
|
||||
|
||||
HRESULT hr = _mediaControl->StopWhenReady();
|
||||
if (FAILED(hr)) {
|
||||
|
|
Loading…
Reference in a new issue