From 11549150240d77ea0b75a029d28b9f6d474af38d Mon Sep 17 00:00:00 2001 From: Hirokazu Honda Date: Wed, 11 Dec 2019 18:25:45 +0900 Subject: [PATCH] video_encoder: Add RTC_EXPORT ScalingSettings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ScalingSettings has some public constructors. These should be able to be called from exteranl code. However, a linker fails on windows because ScalingSettings doesn't have RTC_EXPORT. Bug: chromium:1031965 Test: build crrev.com/c/1949841 Change-Id: Iddaea77f87c52edbe8f77551322d7aa198bc0aeb Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/161860 Reviewed-by: Mirko Bonadei Reviewed-by: Erik Språng Commit-Queue: Mirko Bonadei Cr-Commit-Position: refs/heads/master@{#30063} --- api/video_codecs/video_encoder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/video_codecs/video_encoder.h b/api/video_codecs/video_encoder.h index 14dbf637ee..e5efda7250 100644 --- a/api/video_codecs/video_encoder.h +++ b/api/video_codecs/video_encoder.h @@ -89,7 +89,7 @@ class RTC_EXPORT VideoEncoder { }; // Quality scaling is enabled if thresholds are provided. - struct ScalingSettings { + struct RTC_EXPORT ScalingSettings { private: // Private magic type for kOff, implicitly convertible to // ScalingSettings.