diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-12-21 02:14:37 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-12-21 02:14:37 +0000 |
| commit | 2c2aa91347c0016e6393fc138afe68adab3d6d21 (patch) | |
| tree | c4b07a518a4289f5ac6c7cfb50fb6e26676aa005 /src/lib | |
| parent | d20f2d026f441ad855a26bcf2e53bc8ef4c3faf7 (diff) | |
Don't create subtitle content if there is an empty fonts list.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/writer.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/writer.cc b/src/lib/writer.cc index 512973f46..f844a139a 100644 --- a/src/lib/writer.cc +++ b/src/lib/writer.cc @@ -628,6 +628,10 @@ Writer::write (PlayerSubtitles subs) void Writer::write (list<shared_ptr<Font> > fonts) { + if (fonts.empty ()) { + return; + } + if (!_subtitle_content) { _subtitle_content.reset (new dcp::InteropSubtitleContent (_film->name(), _film->subtitle_language ())); } |
