Warn user when single segment and segment template are used

Change-Id: I4b85f50aa0890fb54a642c38520225df9bdbbbef
This commit is contained in:
Rintaro Kuroiwa 2016-06-22 15:59:00 -07:00
parent 6550868574
commit b07adaeae7
1 changed files with 5 additions and 0 deletions

View File

@ -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;