summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-05-15 22:37:26 +0100
committerCarl Hetherington <cth@carlh.net>2018-05-15 22:37:26 +0100
commite881184597fa77bcc4ebf1e64a48927bc210d03d (patch)
treeb0f7dd8e80ce9eca889778db65ff2f78701a5be7 /src/lib
parent011d403dc6ffbb3c0ddf0b23f6267735bdc1e751 (diff)
Fix failure to skip through more than one empty reel when looking for a reel to put subtitles in.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/writer.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/writer.cc b/src/lib/writer.cc
index d86a2ccf4..896d59cfc 100644
--- a/src/lib/writer.cc
+++ b/src/lib/writer.cc
@@ -660,8 +660,9 @@ Writer::write (PlayerSubtitles subs, DCPTimePeriod period)
return;
}
- if (_subtitle_reel->period().to <= period.from) {
+ while (_subtitle_reel->period().to <= period.from) {
++_subtitle_reel;
+ DCPOMATIC_ASSERT (_subtitle_reel != _reels.end());
}
DCPOMATIC_ASSERT (_subtitle_reel != _reels.end());