Reinstate subtitle speed-up patch 526fd6de4c80a7ac9614a1cb0209efff7b171cd5 but only...
[dcpomatic.git] / test / dcp_subtitle_test.cc
index 9007ad6114ac2ce418121019fbb7be17f119aa63..0e5f2d6ad2b894c4cea765f98d56a3bb15779282 100644 (file)
@@ -29,6 +29,7 @@
 #include "lib/dcp_decoder.h"
 #include "lib/dcp_content_type.h"
 #include "test.h"
+#include <iostream>
 
 using std::cout;
 using std::list;
@@ -66,7 +67,7 @@ BOOST_AUTO_TEST_CASE (dcp_subtitle_within_dcp_test)
        film->examine_and_add_content (content);
        wait_for_jobs ();
 
-       shared_ptr<DCPDecoder> decoder (new DCPDecoder (content));
+       shared_ptr<DCPDecoder> decoder (new DCPDecoder (content, false));
 
        list<ContentTimePeriod> ctp = decoder->text_subtitles_during (
                ContentTimePeriod (
@@ -87,6 +88,7 @@ BOOST_AUTO_TEST_CASE (dcp_subtitle_within_dcp_test)
                        ContentTime::from_seconds (25),
                        ContentTime::from_seconds (26)
                        ),
+               true,
                true
                );