diff options
author | fischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-15 21:40:26 +0000 |
---|---|---|
committer | fischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-15 21:40:26 +0000 |
commit | 4ae765a962313ce9eaf238ca173705158af8b8c5 (patch) | |
tree | cd250c6d2bb054507e745e091c557ee664c2bff8 /content | |
parent | 824fa240a951a80fb8cde109d09e912f2af56f79 (diff) | |
download | chromium_src-4ae765a962313ce9eaf238ca173705158af8b8c5.zip chromium_src-4ae765a962313ce9eaf238ca173705158af8b8c5.tar.gz chromium_src-4ae765a962313ce9eaf238ca173705158af8b8c5.tar.bz2 |
Add missing '!' to test and DLOG the failure.
TBR=acolwell@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10556017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142486 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r-- | content/common/gpu/media/gpu_video_decode_accelerator.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/content/common/gpu/media/gpu_video_decode_accelerator.cc b/content/common/gpu/media/gpu_video_decode_accelerator.cc index bfc3fe8..8ca1d87 100644 --- a/content/common/gpu/media/gpu_video_decode_accelerator.cc +++ b/content/common/gpu/media/gpu_video_decode_accelerator.cc @@ -136,7 +136,8 @@ void GpuVideoDecodeAccelerator::Initialize( #if !defined(OS_WIN) // Ensure we will be able to get a GL context at all before initializing // non-Windows VDAs. - if (stub_->decoder()->MakeCurrent()) { + if (!stub_->decoder()->MakeCurrent()) { + DLOG(ERROR) << "Failed to MakeCurrent()"; NotifyError(media::VideoDecodeAccelerator::PLATFORM_FAILURE); return; } |