From 5f2a57d1c21c3e8067dfd1f68505b1bf96e1d7c7 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 20 Dec 2014 22:29:21 +0000 Subject: Basic pass-through of font information when using DCP subtitles. --- src/lib/subrip_content.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib/subrip_content.cc') 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 film, boost::filesystem::path path) : Content (film, path) , SubtitleContent (film, path) @@ -60,7 +62,7 @@ SubRipContent::examine (boost::shared_ptr job, bool calculate_digest) boost::mutex::scoped_lock lm (_mutex); _length = len; - _fonts.push_back (shared_ptr (new Font ())); + _fonts.push_back (shared_ptr (new Font (font_id))); } string -- cgit v1.2.3