From 154e309f3f34b3d221c7159f9593e144afdf6cc0 Mon Sep 17 00:00:00 2001 From: Kamesh Devarakonda Date: Tue, 21 Nov 2017 15:03:56 -0500 Subject: [PATCH] Remove unused argument. Change-Id: I1ee3ca6527ec4ecce7dd57e18eee70a8c6a11eb0 --- packager/packager.cc | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/packager/packager.cc b/packager/packager.cc index cb5e3a4412..fb121da173 100644 --- a/packager/packager.cc +++ b/packager/packager.cc @@ -444,18 +444,11 @@ std::shared_ptr CreateEncryptionHandler( } Status CreateTextJobs( - int first_stream_number, const std::vector>& streams, const PackagingParams& packaging_params, MpdNotifier* mpd_notifier, std::vector>* jobs) { - // -1 so that it will be back at |first_stream_number| on the first - // iteration. - int stream_number = first_stream_number - 1; - for (const StreamDescriptor& stream : streams) { - stream_number += 1; - const MediaContainerName output_format = GetOutputFormat(stream); if (output_format == CONTAINER_MOV) { @@ -650,14 +643,12 @@ Status CreateAllJobs(const std::vector& stream_descriptors, std::sort(audio_video_streams.begin(), audio_video_streams.end(), media::StreamDescriptorCompareFn); - int stream_number = 0; - Status status; - status.Update(CreateTextJobs(stream_number, text_streams, packaging_params, - mpd_notifier, jobs)); + status.Update( + CreateTextJobs(text_streams, packaging_params, mpd_notifier, jobs)); - stream_number += text_streams.size(); + int stream_number = text_streams.size(); status.Update(CreateAudioVideoJobs( stream_number, audio_video_streams, packaging_params, fake_clock,