Fix assertion failure in AudioBuffers::copy_from() (#1909)
[dcpomatic.git] / test / file_naming_test.cc
index 6fce510604ed27eb107819baecd712b00fa3be02..079026cbac85c4db1133668888289f640fe843bd 100644 (file)
@@ -82,7 +82,7 @@ BOOST_AUTO_TEST_CASE (file_naming_test)
        b->set_video_frame_rate (24);
        b->video->set_length (24);
 
-       film->set_reel_type (REELTYPE_BY_VIDEO_CONTENT);
+       film->set_reel_type (ReelType::BY_VIDEO_CONTENT);
        film->write_metadata ();
        film->make_dcp ();
        BOOST_REQUIRE (!wait_for_jobs());
@@ -139,7 +139,7 @@ BOOST_AUTO_TEST_CASE (file_naming_test2)
        b->set_video_frame_rate (24);
        b->video->set_length (24);
 
-       film->set_reel_type (REELTYPE_BY_VIDEO_CONTENT);
+       film->set_reel_type (ReelType::BY_VIDEO_CONTENT);
        film->make_dcp ();
        BOOST_REQUIRE (!wait_for_jobs());
 
@@ -148,7 +148,7 @@ BOOST_AUTO_TEST_CASE (file_naming_test2)
                boost::filesystem::directory_iterator i = boost::filesystem::directory_iterator (film->file(film->dcp_name()));
                i != boost::filesystem::directory_iterator();
                ++i) {
-               if (boost::regex_match(i->path().string(), boost::regex(".*flt_red\\.png_.*\\.mxf"))) {
+               if (boost::regex_match(i->path().string(), boost::regex(".*flat_red\\.png_.*\\.mxf"))) {
                        ++got[0];
                } else if (boost::regex_match(i->path().string(), boost::regex(".*flat_green\\.png_.*\\.mxf"))) {
                        ++got[1];