Commit 66406229 authored by Ted Meyer's avatar Ted Meyer Committed by Commit Bot

Move vaInitialize Failed message from LOG -> VLOGF

some users are noticing it and opening bugs.

Bug: 1140657
Change-Id: I0b4c56ce7ac41e2d0ce896095995b442900b6b75
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2506100
Commit-Queue: Ted Meyer <tmathmeyer@chromium.org>
Reviewed-by: default avatarDale Curtis <dalecurtis@chromium.org>
Reviewed-by: default avatarAndres Calderon Jaramillo <andrescj@chromium.org>
Cr-Commit-Position: refs/heads/master@{#822437}
parent d5a3dd95
......@@ -43,6 +43,7 @@
#include "media/base/media_switches.h"
#include "media/base/video_frame.h"
#include "media/base/video_types.h"
#include "media/gpu/macros.h"
// Auto-generated for dlopen libva libraries
#include "media/gpu/vaapi/va_stubs.h"
......@@ -548,7 +549,7 @@ bool VADisplayState::InitializeVaDriver_Locked() {
int major_version, minor_version;
VAStatus va_res = vaInitialize(va_display_, &major_version, &minor_version);
if (va_res != VA_STATUS_SUCCESS) {
LOG(ERROR) << "vaInitialize failed: " << vaErrorStr(va_res);
VLOGF(1) << "vaInitialize failed: " << vaErrorStr(va_res);
return false;
}
const std::string va_vendor_string = vaQueryVendorString(va_display_);
......@@ -568,9 +569,9 @@ bool VADisplayState::InitializeVaDriver_Locked() {
// guaranteed to be backward (and not forward) compatible.
if (VA_MAJOR_VERSION > major_version ||
(VA_MAJOR_VERSION == major_version && VA_MINOR_VERSION > minor_version)) {
LOG(ERROR) << "The system version " << major_version << "." << minor_version
<< " should be greater than or equal to "
<< VA_MAJOR_VERSION << "." << VA_MINOR_VERSION;
VLOGF(1) << "The system version " << major_version << "." << minor_version
<< " should be greater than or equal to " << VA_MAJOR_VERSION
<< "." << VA_MINOR_VERSION;
return false;
}
return true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment