From b07adaeae7b0d3b886dfe35a435782309d510d11 Mon Sep 17 00:00:00 2001 From: Rintaro Kuroiwa Date: Wed, 22 Jun 2016 15:59:00 -0700 Subject: [PATCH] Warn user when single segment and segment template are used Change-Id: I4b85f50aa0890fb54a642c38520225df9bdbbbef --- packager/app/packager_main.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packager/app/packager_main.cc b/packager/app/packager_main.cc index 72e5369a39..82f2c3a3b0 100644 --- a/packager/app/packager_main.cc +++ b/packager/app/packager_main.cc @@ -255,6 +255,11 @@ bool CreateRemuxJobs(const StreamDescriptorList& stream_descriptors, return false; } stream_muxer_options.segment_template = stream_iter->segment_template; + if (stream_muxer_options.single_segment) { + LOG(WARNING) << "Segment template and single segment are incompatible, " + "setting single segment to false."; + stream_muxer_options.single_segment = false; + } } stream_muxer_options.bandwidth = stream_iter->bandwidth;