Commit 27cf5ec1 authored by Alexandre Courbot's avatar Alexandre Courbot Committed by Commit Bot

media/gpu/v4l2svda: fix clang-tidy warnings

Quick and easy fixes reported by clang-tidy.

BUG=None
TEST=video.DecodeAccel.h264 passes on Kukui.

Change-Id: I8345f2eb44fc3c2b4a29772d9e2fcdf1a2a0c032
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2421996
Commit-Queue: Fritz Koenig <frkoenig@chromium.org>
Reviewed-by: default avatarFritz Koenig <frkoenig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#809469}
parent 2cb0b8ff
......@@ -295,28 +295,28 @@ bool V4L2SliceVideoDecodeAccelerator::Initialize(const Config& config,
if (video_profile_ >= H264PROFILE_MIN && video_profile_ <= H264PROFILE_MAX) {
if (supports_requests_) {
decoder_.reset(new H264Decoder(
decoder_ = std::make_unique<H264Decoder>(
std::make_unique<V4L2H264Accelerator>(this, device_.get()),
video_profile_));
video_profile_);
} else {
decoder_.reset(new H264Decoder(
decoder_ = std::make_unique<H264Decoder>(
std::make_unique<V4L2LegacyH264Accelerator>(this, device_.get()),
video_profile_));
video_profile_);
}
} else if (video_profile_ >= VP8PROFILE_MIN &&
video_profile_ <= VP8PROFILE_MAX) {
if (supports_requests_) {
decoder_.reset(new VP8Decoder(
std::make_unique<V4L2VP8Accelerator>(this, device_.get())));
decoder_ = std::make_unique<VP8Decoder>(
std::make_unique<V4L2VP8Accelerator>(this, device_.get()));
} else {
decoder_.reset(new VP8Decoder(
std::make_unique<V4L2LegacyVP8Accelerator>(this, device_.get())));
decoder_ = std::make_unique<VP8Decoder>(
std::make_unique<V4L2LegacyVP8Accelerator>(this, device_.get()));
}
} else if (video_profile_ >= VP9PROFILE_MIN &&
video_profile_ <= VP9PROFILE_MAX) {
decoder_.reset(new VP9Decoder(
decoder_ = std::make_unique<VP9Decoder>(
std::make_unique<V4L2VP9Accelerator>(this, device_.get()),
video_profile_));
video_profile_);
} else {
NOTREACHED() << "Unsupported profile " << GetProfileName(video_profile_);
return false;
......
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