From 3592839896082c72c8e92f9ebde788ef77b88043 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= Date: Thu, 16 Jul 2020 12:08:44 +0200 Subject: [PATCH] Add default values for VideoEncoderFactory::CodecInfo So that applications can construct a default struct without naming the members. Bug: None Change-Id: Idd9028bee9016670e776f17a62077eb9c34d6f2a Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/179485 Commit-Queue: Niels Moller Reviewed-by: Mirta Dvornicic Cr-Commit-Position: refs/heads/master@{#31742} --- api/video_codecs/video_encoder_factory.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/video_codecs/video_encoder_factory.h b/api/video_codecs/video_encoder_factory.h index 630b7aa70c..c396090ea6 100644 --- a/api/video_codecs/video_encoder_factory.h +++ b/api/video_codecs/video_encoder_factory.h @@ -30,13 +30,13 @@ class VideoEncoderFactory { struct CodecInfo { // |is_hardware_accelerated| is true if the encoders created by this factory // of the given codec will use hardware support. - bool is_hardware_accelerated; + bool is_hardware_accelerated = false; // |has_internal_source| is true if encoders created by this factory of the // given codec will use internal camera sources, meaning that they don't // require/expect frames to be delivered via webrtc::VideoEncoder::Encode. // This flag is used as the internal_source parameter to // webrtc::ViEExternalCodec::RegisterExternalSendCodec. - bool has_internal_source; + bool has_internal_source = false; }; // An injectable class that is continuously updated with encoding conditions