diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-04-19 22:47:37 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-04-19 22:47:37 +0100 |
| commit | 88b52579c0bb391fe0db225b7a608ad3ffd61831 (patch) | |
| tree | 5af3431ea5c86e01a969e40d57bde6741a7535c8 /src/lib | |
| parent | 8c09738a28a4a9c0ae59a7486224cb3b4e850b57 (diff) | |
Add unit test to trigger #1275 and an assert to prevent the segfault.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/writer.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/writer.cc b/src/lib/writer.cc index d6c3370b0..d86a2ccf4 100644 --- a/src/lib/writer.cc +++ b/src/lib/writer.cc @@ -664,6 +664,8 @@ Writer::write (PlayerSubtitles subs, DCPTimePeriod period) ++_subtitle_reel; } + DCPOMATIC_ASSERT (_subtitle_reel != _reels.end()); + _subtitle_reel->write (subs); } |
