projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
70268b8
)
Cleanup: use a better loop variable name.
author
Carl Hetherington
<cth@carlh.net>
Tue, 8 Aug 2023 13:25:42 +0000
(15:25 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 8 Aug 2023 22:42:59 +0000
(
00:42
+0200)
src/lib/film.cc
patch
|
blob
|
history
diff --git
a/src/lib/film.cc
b/src/lib/film.cc
index 171a9aa4df583f1facc9662ad8d333b034682c02..2840d0236b79029be4dc8ce0045ac43e0a010ef9 100644
(file)
--- a/
src/lib/film.cc
+++ b/
src/lib/film.cc
@@
-1941,10
+1941,10
@@
Film::closed_caption_tracks () const
{
list<DCPTextTrack> tt;
for (auto i: content()) {
{
list<DCPTextTrack> tt;
for (auto i: content()) {
- for (auto
j
: i->text) {
+ for (auto
text
: i->text) {
/* XXX: Empty DCPTextTrack ends up being a magic value here - the "unknown" or "not specified" track */
/* XXX: Empty DCPTextTrack ends up being a magic value here - the "unknown" or "not specified" track */
- auto dtt =
j
->dcp_track().get_value_or(DCPTextTrack());
- if (
j
->type() == TextType::CLOSED_CAPTION && find(tt.begin(), tt.end(), dtt) == tt.end()) {
+ auto dtt =
text
->dcp_track().get_value_or(DCPTextTrack());
+ if (
text
->type() == TextType::CLOSED_CAPTION && find(tt.begin(), tt.end(), dtt) == tt.end()) {
tt.push_back (dtt);
}
}
tt.push_back (dtt);
}
}