diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-07-10 22:41:48 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-07-10 22:41:48 +0100 |
| commit | a8af9a0b57b853b8a8cd8fa35adb3fc967d59ee7 (patch) | |
| tree | 9493b374153de99bc220138361420c5abe85b16e /src/lib/dcp_examiner.cc | |
| parent | 8d58a7c5f4320ad5c111e336c45e44d6b51ab509 (diff) | |
Add has_subtitles method to SubtitleContent; tidy up timeline display a bit.
Diffstat (limited to 'src/lib/dcp_examiner.cc')
| -rw-r--r-- | src/lib/dcp_examiner.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/dcp_examiner.cc b/src/lib/dcp_examiner.cc index 39bf2d098..625276e18 100644 --- a/src/lib/dcp_examiner.cc +++ b/src/lib/dcp_examiner.cc @@ -84,5 +84,9 @@ DCPExaminer::DCPExaminer (shared_ptr<const DCPContent> content) _audio_length += ContentTime::from_frames ((*i)->main_sound()->duration(), _video_frame_rate.get ()); } + + if ((*i)->main_subtitle ()) { + _has_subtitles = true; + } } } |
