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

Side by Side Diff: media/video/capture/win/video_capture_device_mf_win.cc

Issue 140843007: Implement browser-side logging to WebRtc log (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: respond to cr Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/video/capture/win/video_capture_device_mf_win.h" 5 #include "media/video/capture/win/video_capture_device_mf_win.h"
6 6
7 #include <mfapi.h> 7 #include <mfapi.h>
8 #include <mferror.h> 8 #include <mferror.h>
9 9
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 // fail with HRESULT_FROM_WINHRESULT_FROM_WIN32(ERROR_INVALID_FUNCTION). 425 // fail with HRESULT_FROM_WINHRESULT_FROM_WIN32(ERROR_INVALID_FUNCTION).
426 // It's not clear to me why this is, but it is possible that it has 426 // It's not clear to me why this is, but it is possible that it has
427 // something to do with this bug: 427 // something to do with this bug:
428 // http://support.microsoft.com/kb/979567 428 // http://support.microsoft.com/kb/979567
429 OnError(hr); 429 OnError(hr);
430 } 430 }
431 } 431 }
432 } 432 }
433 433
434 void VideoCaptureDeviceMFWin::OnError(HRESULT hr) { 434 void VideoCaptureDeviceMFWin::OnError(HRESULT hr) {
435 DLOG(ERROR) << "VideoCaptureDeviceMFWin: " << std::hex << hr; 435 std::stringstream log_msg;
436 log_msg << "VideoCaptureDeviceMFWin: " << std::hex << hr;
437 DLOG(ERROR) << log_msg;
436 if (client_.get()) 438 if (client_.get())
437 client_->OnError(); 439 client_->OnError(log_msg.str());
438 } 440 }
439 441
440 } // namespace media 442 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698