| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 { | 388 { |
| 389 WEBRTC_TRACE(webrtc::kTraceError, webrtc::kTraceVideoCapture, _id, | 389 WEBRTC_TRACE(webrtc::kTraceError, webrtc::kTraceVideoCapture, _id, |
| 390 "Failed to connect capture device to the dv devoder: %x", | 390 "Failed to connect capture device to the dv devoder: %x", |
| 391 hr); | 391 hr); |
| 392 return hr; | 392 return hr; |
| 393 } | 393 } |
| 394 | 394 |
| 395 hr = _graphBuilder->ConnectDirect(_outputDvPin, _inputSendPin, NULL); | 395 hr = _graphBuilder->ConnectDirect(_outputDvPin, _inputSendPin, NULL); |
| 396 if (hr != S_OK) | 396 if (hr != S_OK) |
| 397 { | 397 { |
| 398 if (hr == (long)0x80070004) | 398 if (hr == HRESULT_FROM_WIN32(ERROR_TOO_MANY_OPEN_FILES)) |
| 399 { | 399 { |
| 400 WEBRTC_TRACE(webrtc::kTraceError, webrtc::kTraceVideoCapture, _id, | 400 WEBRTC_TRACE(webrtc::kTraceError, webrtc::kTraceVideoCapture, _id, |
| 401 "Failed to connect the capture device, busy"); | 401 "Failed to connect the capture device, busy"); |
| 402 } | 402 } |
| 403 else | 403 else |
| 404 { | 404 { |
| 405 WEBRTC_TRACE(webrtc::kTraceError, webrtc::kTraceVideoCapture, _id, | 405 WEBRTC_TRACE(webrtc::kTraceError, webrtc::kTraceVideoCapture, _id, |
| 406 "Failed to connect capture device to the send graph: 0x
%x", | 406 "Failed to connect capture device to the send graph: 0x
%x", |
| 407 hr); | 407 hr); |
| 408 } | 408 } |
| 409 return hr; | 409 return hr; |
| 410 } | 410 } |
| 411 return hr; | 411 return hr; |
| 412 } | 412 } |
| 413 } // namespace videocapturemodule | 413 } // namespace videocapturemodule |
| 414 } // namespace webrtc | 414 } // namespace webrtc |
| OLD | NEW |