diff options
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/writer.cc | 3 |
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()); |
