From 0cb0f79c335fb2762cf99ea8f12f12425e8feac8 Mon Sep 17 00:00:00 2001 From: Kongqun Yang Date: Fri, 17 Mar 2017 12:45:28 -0700 Subject: [PATCH] Fix build break in Windows (#211) Change-Id: I0ed7a712fd02ea4dddd9c20541c2df653dc456cb --- packager/media/base/media_handler.h | 2 +- packager/media/chunking/chunking_handler.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packager/media/base/media_handler.h b/packager/media/base/media_handler.h index 6ee664b845..9e5a4ed2bd 100644 --- a/packager/media/base/media_handler.h +++ b/packager/media/base/media_handler.h @@ -41,7 +41,7 @@ struct SegmentInfo { // TODO(kqyang): Should we use protobuf? struct StreamData { - size_t stream_index = -1; + size_t stream_index = static_cast(-1); StreamDataType stream_data_type = StreamDataType::kUnknown; std::shared_ptr period_info; diff --git a/packager/media/chunking/chunking_handler.cc b/packager/media/chunking/chunking_handler.cc index aafb184b90..34b682fe6d 100644 --- a/packager/media/chunking/chunking_handler.cc +++ b/packager/media/chunking/chunking_handler.cc @@ -128,7 +128,7 @@ Status ChunkingHandler::OnFlushRequest(size_t input_stream_index) { return status; } } - const int output_stream_index = input_stream_index; + const size_t output_stream_index = input_stream_index; return FlushDownstream(output_stream_index); }