Lots of #include <iostream>s for Arch.
[dcpomatic.git] / src / lib / subrip_content.cc
index f9d184b9d965f6c6a725ec523c44da813946105b..0d1bd748db3c1a9a075e9aa841577f69df2198b4 100644 (file)
@@ -23,6 +23,8 @@
 #include "film.h"
 #include "font.h"
 #include "raw_convert.h"
+#include <libxml++/libxml++.h>
+#include <iostream>
 
 #include "i18n.h"
 
@@ -56,12 +58,15 @@ SubRipContent::examine (boost::shared_ptr<Job> job)
 
        shared_ptr<const Film> film = _film.lock ();
        DCPOMATIC_ASSERT (film);
-       
+
        DCPTime len (s.length (), film->active_frame_rate_change (position ()));
 
+       /* Default to turning these subtitles on */
+       set_use_subtitles (true);
+
        boost::mutex::scoped_lock lm (_mutex);
        _length = len;
-       _fonts.push_back (shared_ptr<Font> (new Font (font_id)));
+       add_font (shared_ptr<Font> (new Font (font_id)));
 }
 
 string