From 8951894f13efec920382fc42285ed11c97cfd84b Mon Sep 17 00:00:00 2001 From: Rintaro Kuroiwa Date: Wed, 11 Jun 2014 13:04:18 -0700 Subject: [PATCH] Build fix Clang built ok but GCC didn't like it. Add missing header. Remove extended initializer. Change-Id: I1abbfdc49c94d8e6a39491a1b1e8c698ee2c0b88 --- mpd/base/bandwidth_estimator.cc | 1 + mpd/base/mpd_builder_unittest.cc | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/mpd/base/bandwidth_estimator.cc b/mpd/base/bandwidth_estimator.cc index 8fc413c133..67c701f845 100644 --- a/mpd/base/bandwidth_estimator.cc +++ b/mpd/base/bandwidth_estimator.cc @@ -7,6 +7,7 @@ #include "mpd/base/bandwidth_estimator.h" #include +#include #include "base/logging.h" diff --git a/mpd/base/mpd_builder_unittest.cc b/mpd/base/mpd_builder_unittest.cc index df51f6ef9a..c276006e22 100644 --- a/mpd/base/mpd_builder_unittest.cc +++ b/mpd/base/mpd_builder_unittest.cc @@ -131,7 +131,8 @@ class SegmentTemplateTest : public DynamicMpdBuilderTest { const char kSElementTemplate[] = "\n"; const char kSElementTemplateWithoutR[] = "\n"; - segment_infos_for_expected_out_.push_back({start_time, duration, repeat}); + SegmentInfo s = {start_time, duration, repeat}; + segment_infos_for_expected_out_.push_back(s); if (repeat == 0) { expected_s_elements_ += base::StringPrintf(kSElementTemplateWithoutR, start_time, duration);