X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fplayer.cc;h=732493f3b065d1c51bbbe339f315552229fd65e5;hp=29237d93ef608eca7d726e077cd1d4a17a6f2ea9;hb=20da60db1c5a388629b054ed6e1b143decbbd5de;hpb=dc4eb9ec4a4741d02d5f3060634368b2aada1a2c 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) {