diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-07-10 16:28:03 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-07-10 16:28:03 +0100 |
| commit | 8f6277ad312410efe4187a03d6795f344b433475 (patch) | |
| tree | d9e522ba48d0af1991fb965f2cda84168c9fb369 /src | |
| parent | 8c6e4c8e4f37450f44cb4ca9918406a6f2cc6055 (diff) | |
Prevent erroneous creation of subtitle MXF where there are no subtitles.
Diffstat (limited to 'src')
| -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 09dd6322e..2d6d830cd 100644 --- a/src/lib/writer.cc +++ b/src/lib/writer.cc @@ -589,6 +589,10 @@ Writer::can_fake_write (int frame) const void Writer::write (PlayerSubtitles subs) { + if (subs.empty ()) { + return; + } + if (!_subtitle_content) { _subtitle_content.reset ( new dcp::SubtitleContent (_film->name(), _film->isdcf_metadata().subtitle_language) |
