diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-12-20 22:29:21 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-12-20 22:29:21 +0000 |
| commit | 5f2a57d1c21c3e8067dfd1f68505b1bf96e1d7c7 (patch) | |
| tree | 01e112c11223eb94772e86ca40fbefdb7ec05b8e /src/lib/subrip_content.cc | |
| parent | b607482671ee26a3462d9fcefdd7d7ddcd25184c (diff) | |
Basic pass-through of font information when using DCP subtitles.
Diffstat (limited to 'src/lib/subrip_content.cc')
| -rw-r--r-- | src/lib/subrip_content.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/subrip_content.cc b/src/lib/subrip_content.cc index 969829b31..992947a2d 100644 --- a/src/lib/subrip_content.cc +++ b/src/lib/subrip_content.cc @@ -32,6 +32,8 @@ using dcp::raw_convert; using boost::shared_ptr; using boost::lexical_cast; +std::string const SubRipContent::font_id = "font"; + SubRipContent::SubRipContent (shared_ptr<const Film> film, boost::filesystem::path path) : Content (film, path) , SubtitleContent (film, path) @@ -60,7 +62,7 @@ SubRipContent::examine (boost::shared_ptr<Job> job, bool calculate_digest) boost::mutex::scoped_lock lm (_mutex); _length = len; - _fonts.push_back (shared_ptr<Font> (new Font ())); + _fonts.push_back (shared_ptr<Font> (new Font (font_id))); } string |
