Video Capture Device Win: cleanup error logging
While writing other code, I found out that the error logging in VCDWin is cumbersome: it is too verbose on Init() and doesn't dump the HRESULT while capturing. So: This CL adds a macro DLOG_IF_WITH_HRESULT() that logs an error message _and_ the stringified HRESULT. It also sends an HRESULT to SetErrorMessage() to dump it on stdout. In my experience, all these loggings are only used by developers to try and guess what goes wrong in Win bots when those fail, so the less release code they take up the better. BUG=405016, 648490 Review-Url: https://codereview.chromium.org/2365533004 Cr-Commit-Position: refs/heads/master@{#420493}
Showing
Please register or sign in to comment