diff options
author | Ben Murdoch <benm@google.com> | 2013-07-10 11:40:50 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2013-07-10 11:40:50 +0100 |
commit | eb525c5499e34cc9c4b825d6d9e75bb07cc06ace (patch) | |
tree | d908ce4bfe1717d2cd53f41327d8b9ba8304355f /content/common/gpu/media/dxva_video_decode_accelerator.cc | |
parent | 3c54152607de4272b3da0c146b71dcba8a0e5610 (diff) | |
download | chromium_org-eb525c5499e34cc9c4b825d6d9e75bb07cc06ace.tar.gz |
Merge from Chromium at DEPS revision r210036
This commit was generated by merge_to_master.py.
Change-Id: Ib0e33a83ad5dfa541481e83d7acfc6970e68f471
Diffstat (limited to 'content/common/gpu/media/dxva_video_decode_accelerator.cc')
-rw-r--r-- | content/common/gpu/media/dxva_video_decode_accelerator.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/content/common/gpu/media/dxva_video_decode_accelerator.cc b/content/common/gpu/media/dxva_video_decode_accelerator.cc index bfeedb9163..1184171cf4 100644 --- a/content/common/gpu/media/dxva_video_decode_accelerator.cc +++ b/content/common/gpu/media/dxva_video_decode_accelerator.cc @@ -369,7 +369,7 @@ void DXVAVideoDecodeAccelerator::PreSandboxInitialization() { // Should be called only once during program startup. DCHECK(!pre_sandbox_init_done_); - static wchar_t* decoding_dlls[] = { + static const wchar_t* kDecodingDlls[] = { L"d3d9.dll", L"dxva2.dll", L"mf.dll", @@ -377,9 +377,9 @@ void DXVAVideoDecodeAccelerator::PreSandboxInitialization() { L"msmpeg2vdec.dll", }; - for (int i = 0; i < arraysize(decoding_dlls); ++i) { - if (!::LoadLibrary(decoding_dlls[i])) { - DLOG(ERROR) << "Failed to load decoder dll: " << decoding_dlls[i] + for (int i = 0; i < arraysize(kDecodingDlls); ++i) { + if (!::LoadLibrary(kDecodingDlls[i])) { + DLOG(ERROR) << "Failed to load decoder dll: " << kDecodingDlls[i] << ", Error: " << ::GetLastError(); return; } |