| Index: webrtc/modules/audio_processing/beamformer/array_util.cc
|
| diff --git a/webrtc/modules/audio_processing/beamformer/array_util.cc b/webrtc/modules/audio_processing/beamformer/array_util.cc
|
| index 8aaeee9f591d8e1590a5cf980744468ce97d28c1..d97beea9720a69d1b2efc661cf454c0eb60426ee 100644
|
| --- a/webrtc/modules/audio_processing/beamformer/array_util.cc
|
| +++ b/webrtc/modules/audio_processing/beamformer/array_util.cc
|
| @@ -68,7 +68,7 @@ rtc::Maybe<Point> GetDirectionIfLinear(
|
| return rtc::Maybe<Point>();
|
| }
|
| }
|
| - return first_pair_direction;
|
| + return rtc::Maybe<Point>(first_pair_direction);
|
| }
|
|
|
| rtc::Maybe<Point> GetNormalIfPlanar(const std::vector<Point>& array_geometry) {
|
| @@ -95,14 +95,14 @@ rtc::Maybe<Point> GetNormalIfPlanar(const std::vector<Point>& array_geometry) {
|
| return rtc::Maybe<Point>();
|
| }
|
| }
|
| - return normal_direction;
|
| + return rtc::Maybe<Point>(normal_direction);
|
| }
|
|
|
| rtc::Maybe<Point> GetArrayNormalIfExists(
|
| const std::vector<Point>& array_geometry) {
|
| const rtc::Maybe<Point> direction = GetDirectionIfLinear(array_geometry);
|
| if (direction) {
|
| - return Point(direction->y(), -direction->x(), 0.f);
|
| + return rtc::Maybe<Point>(Point(direction->y(), -direction->x(), 0.f));
|
| }
|
| const rtc::Maybe<Point> normal = GetNormalIfPlanar(array_geometry);
|
| if (normal && normal->z() < kMaxDotProduct) {
|
|
|