Start of Fonts dialog for setting up subtitle fonts.
[dcpomatic.git] / src / lib / subrip_content.cc
index 14cb50b86718eb3a25e0a3516a5cea9f823261e1..969829b31e1a9075d2e7316fb1cfab2ecbaed58e 100644 (file)
@@ -21,6 +21,7 @@
 #include "util.h"
 #include "subrip.h"
 #include "film.h"
+#include "font.h"
 #include <dcp/raw_convert.h>
 
 #include "i18n.h"
@@ -47,9 +48,9 @@ SubRipContent::SubRipContent (shared_ptr<const Film> film, cxml::ConstNodePtr no
 }
 
 void
-SubRipContent::examine (boost::shared_ptr<Job> job)
+SubRipContent::examine (boost::shared_ptr<Job> job, bool calculate_digest)
 {
-       Content::examine (job);
+       Content::examine (job, calculate_digest);
        SubRip s (shared_from_this ());
 
        shared_ptr<const Film> film = _film.lock ();
@@ -59,6 +60,7 @@ SubRipContent::examine (boost::shared_ptr<Job> job)
 
        boost::mutex::scoped_lock lm (_mutex);
        _length = len;
+       _fonts.push_back (shared_ptr<Font> (new Font ()));
 }
 
 string