Index: webrtc/modules/video_capture/windows/video_capture_ds.cc |
diff --git a/webrtc/modules/video_capture/windows/video_capture_ds.cc b/webrtc/modules/video_capture/windows/video_capture_ds.cc |
index dcef2d4706b0b8d0fb6093e5b3fcb56d8d654847..fe2ca7e7d0bf0a2ac1cb184e36ebc8b657eedc21 100644 |
--- a/webrtc/modules/video_capture/windows/video_capture_ds.cc |
+++ b/webrtc/modules/video_capture/windows/video_capture_ds.cc |
@@ -395,7 +395,7 @@ HRESULT VideoCaptureDS::ConnectDVCamera() |
hr = _graphBuilder->ConnectDirect(_outputDvPin, _inputSendPin, NULL); |
if (hr != S_OK) |
{ |
- if (hr == (long)0x80070004) |
+ if (hr == HRESULT_FROM_WIN32(ERROR_TOO_MANY_OPEN_FILES)) |
{ |
WEBRTC_TRACE(webrtc::kTraceError, webrtc::kTraceVideoCapture, _id, |
"Failed to connect the capture device, busy"); |