Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Side by Side Diff: webrtc/modules/video_capture/windows/video_capture_ds.cc

Issue 1593713013: Roll chromium_revision 7a4fb8d..f527e86 (370025:370073) (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Fix/disable Win Clang warnings Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 == 0x80070004) 398 if (hr == (long)0x80070004)
henrika_webrtc 2016/01/19 08:55:17 Could you use a suffix here, like 0x80070004L?
kjellander_webrtc 2016/01/19 09:18:21 I tried, but it becomes an unsigned long even if h
henrika_webrtc 2016/01/19 09:24:14 never mind, but L or l should be long (see http://
torbjorng (webrtc) 2016/01/19 13:10:02 My understanding is that on systems where "long" i
kjellander_webrtc 2016/01/19 13:48:58 Thanks for the input. Tommi suggested a better sol
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698