From 50787c605de68a63b97d4e46c661b3b4784f3ea3 Mon Sep 17 00:00:00 2001 From: Kongqun Yang Date: Fri, 10 Feb 2017 22:57:32 -0800 Subject: [PATCH] Fix build break in win64 Also updated appveyor to build x64 first. Change-Id: I1970e39bad559b3105ea31fb82375406d95f4a8b --- appveyor.yml | 2 +- packager/media/chunking/chunking_handler.cc | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index d49c9dd258..122d8f1ecf 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,6 +1,6 @@ platform: - - x86 - x64 + - x86 configuration: - Debug diff --git a/packager/media/chunking/chunking_handler.cc b/packager/media/chunking/chunking_handler.cc index c173ddb291..9ee98599c1 100644 --- a/packager/media/chunking/chunking_handler.cc +++ b/packager/media/chunking/chunking_handler.cc @@ -222,7 +222,8 @@ Status ChunkingHandler::DispatchNonMainSamples(int64_t timestamp_threshold) { Status ChunkingHandler::DispatchSegmentInfoForAllStreams() { Status status; - for (size_t i = 0; i < segment_info_.size() && status.ok(); ++i) { + for (int i = 0; i < static_cast(segment_info_.size()) && status.ok(); + ++i) { if (segment_info_[i] && segment_info_[i]->start_timestamp != -1) { segment_info_[i]->duration = last_sample_end_timestamps_[i] - segment_info_[i]->start_timestamp; @@ -236,7 +237,8 @@ Status ChunkingHandler::DispatchSegmentInfoForAllStreams() { Status ChunkingHandler::DispatchSubsegmentInfoForAllStreams() { Status status; - for (size_t i = 0; i < subsegment_info_.size() && status.ok(); ++i) { + for (int i = 0; i < static_cast(subsegment_info_.size()) && status.ok(); + ++i) { if (subsegment_info_[i] && subsegment_info_[i]->start_timestamp != -1) { subsegment_info_[i]->duration = last_sample_end_timestamps_[i] - subsegment_info_[i]->start_timestamp;