From: Carl Hetherington Date: Tue, 6 Sep 2022 18:50:24 +0000 (+0200) Subject: Cleanup: better variable name. X-Git-Tag: v2.16.33~18 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=20da60db1c5a388629b054ed6e1b143decbbd5de Cleanup: better variable name. --- diff --git a/src/lib/player.cc b/src/lib/player.cc index 29237d93e..732493f3b 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -282,29 +282,29 @@ Player::setup_pieces () _shuffler->Video.connect(bind(&Player::video, this, _1, _2)); } - for (auto i: playlist()->content()) { + for (auto content: playlist()->content()) { - if (!i->paths_valid ()) { + if (!content->paths_valid()) { continue; } - if (_ignore_video && _ignore_audio && i->text.empty()) { + if (_ignore_video && _ignore_audio && content->text.empty()) { /* We're only interested in text and this content has none */ continue; } shared_ptr old_decoder; for (auto j: old_pieces) { - if (j->content == i) { + if (j->content == content) { old_decoder = j->decoder; break; } } - auto decoder = decoder_factory(film, i, _fast, _tolerant, old_decoder); + auto decoder = decoder_factory(film, content, _fast, _tolerant, old_decoder); DCPOMATIC_ASSERT (decoder); - FrameRateChange frc(film, i); + FrameRateChange frc(film, content); if (decoder->video && _ignore_video) { decoder->video->set_ignore (true); @@ -328,7 +328,7 @@ Player::setup_pieces () } } - auto piece = make_shared(i, decoder, frc); + auto piece = make_shared(content, decoder, frc); _pieces.push_back (piece); if (decoder->video) {