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

Unified Diff: media/video/capture/win/video_capture_device_mf_win.cc

Issue 489183003: Log error messages in windows video capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: syntax error : missing ')' Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: media/video/capture/win/video_capture_device_mf_win.cc
diff --git a/media/video/capture/win/video_capture_device_mf_win.cc b/media/video/capture/win/video_capture_device_mf_win.cc
index de1f6eb2dfff6056305637b94937a86eedae0b95..ab945a237e6168c5ac580026ae0acabf9fcb056c 100644
--- a/media/video/capture/win/video_capture_device_mf_win.cc
+++ b/media/video/capture/win/video_capture_device_mf_win.cc
@@ -332,10 +332,10 @@ void VideoCaptureDeviceMFWin::OnIncomingCapturedData(
}
void VideoCaptureDeviceMFWin::OnError(HRESULT hr) {
- std::string log_msg = base::StringPrintf("VideoCaptureDeviceMFWin: %x", hr);
- DLOG(ERROR) << log_msg;
if (client_.get())
tommi (sloooow) - chröme 2014/08/30 17:39:33 since the body of the if() contains more than one
magjed_chromium 2014/09/01 08:34:14 Done.
- client_->OnError(log_msg);
+ client_->OnError(
+ base::StringPrintf("VideoCaptureDeviceMFWin: %s",
+ logging::SystemErrorCodeToString(hr).c_str()));
}
} // namespace media

Powered by Google App Engine
This is Rietveld 408576698