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

Unified Diff: media/gpu/dxva_video_decode_accelerator_win.cc

Issue 2133553002: Add logging of DXVAVDA errors with line numbers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « media/gpu/dxva_picture_buffer_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/dxva_video_decode_accelerator_win.cc
diff --git a/media/gpu/dxva_video_decode_accelerator_win.cc b/media/gpu/dxva_video_decode_accelerator_win.cc
index 0c74f4eb47c7bbb9d1369ba04fc66622f851e5a7..7a91934f2b647792a4d1c81210f5cb972d46b49a 100644
--- a/media/gpu/dxva_video_decode_accelerator_win.cc
+++ b/media/gpu/dxva_video_decode_accelerator_win.cc
@@ -218,6 +218,11 @@ class MediaBufferScopedPointer {
DISALLOW_COPY_AND_ASSIGN(MediaBufferScopedPointer);
};
+void LogDXVAError(int line) {
+ LOG(ERROR) << "Error in dxva_video_decode_accelerator_win.cc on line "
+ << line;
+}
+
} // namespace
namespace media {
@@ -234,6 +239,7 @@ CreateDXGIDeviceManager
do { \
if (!(result)) { \
DLOG(ERROR) << log; \
+ LogDXVAError(__LINE__); \
return ret; \
} \
} while (0)
@@ -246,6 +252,7 @@ CreateDXGIDeviceManager
do { \
if (!(result)) { \
DVLOG(1) << log; \
+ LogDXVAError(__LINE__); \
StopOnError(error_code); \
return ret; \
} \
« no previous file with comments | « media/gpu/dxva_picture_buffer_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698