diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-01-28 19:58:08 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-03-09 17:04:02 +0100 |
| commit | d4422f1e52b559ec7d5552eb6e5e63536b66e0de (patch) | |
| tree | 785298b5a05859e7a488d35807caf96ccc397273 /src | |
| parent | 9ff9a0546f44e805030a1ae5b6c7a7ab66356596 (diff) | |
Cleanup: use some better variable names.
Diffstat (limited to 'src')
| -rw-r--r-- | src/tools/dcpomatic_create.cc | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/tools/dcpomatic_create.cc b/src/tools/dcpomatic_create.cc index e298f238c..e4452b19a 100644 --- a/src/tools/dcpomatic_create.cc +++ b/src/tools/dcpomatic_create.cc @@ -115,19 +115,19 @@ main (int argc, char* argv[]) film->set_j2k_bandwidth (*cc.j2k_bandwidth); } - for (auto i: cc.content) { - boost::filesystem::path const can = boost::filesystem::canonical (i.path); - list<shared_ptr<Content> > content; + for (auto cli_content: cc.content) { + auto const can = boost::filesystem::canonical (cli_content.path); + list<shared_ptr<Content>> film_content_list; if (boost::filesystem::exists (can / "ASSETMAP") || (boost::filesystem::exists (can / "ASSETMAP.xml"))) { - content.push_back (make_shared<DCPContent>(can)); + film_content_list.push_back (make_shared<DCPContent>(can)); } else { /* I guess it's not a DCP */ - content = content_factory (can); + film_content_list = content_factory (can); } - for (auto j: content) { - film->examine_and_add_content (j); + for (auto film_content: film_content_list) { + film->examine_and_add_content (film_content); } while (jm->work_to_do ()) { @@ -136,21 +136,21 @@ main (int argc, char* argv[]) while (signal_manager->ui_idle() > 0) {} - for (auto j: content) { - if (j->video) { - j->video->set_frame_type (i.frame_type); + for (auto film_content: film_content_list) { + if (film_content->video) { + film_content->video->set_frame_type (cli_content.frame_type); } - if (j->audio && i.channel) { - for (auto stream: j->audio->streams()) { + if (film_content->audio && cli_content.channel) { + for (auto stream: film_content->audio->streams()) { AudioMapping mapping(stream->channels(), film->audio_channels()); for (int channel = 0; channel < stream->channels(); ++channel) { - mapping.set(channel, *i.channel, 1.0f); + mapping.set(channel, *cli_content.channel, 1.0f); } stream->set_mapping (mapping); } } - if (j->audio && i.gain) { - j->audio->set_gain (*i.gain); + if (film_content->audio && cli_content.gain) { + film_content->audio->set_gain (*cli_content.gain); } } } |
