Add a dialog to show which screens have potentially-problematic
[dcpomatic.git] / test / threed_test.cc
index 87ddd25aec252b75f64a333b4725a08f513f72cd..698fcba0b50de8cf35f0b0392b01fc2d08104eaa 100644 (file)
@@ -168,6 +168,7 @@ BOOST_AUTO_TEST_CASE (threed_test6)
        film->examine_and_add_content (L);
        auto R = make_shared<FFmpegContent>("test/data/3dR.mp4");
        film->examine_and_add_content (R);
+       film->set_audio_channels(16);
        BOOST_REQUIRE (!wait_for_jobs());
 
        L->video->set_frame_type (VideoFrameType::THREE_D_LEFT);
@@ -318,7 +319,7 @@ BOOST_AUTO_TEST_CASE(threed_passthrough_test, * boost::unit_test::depends_on("th
 
        std::vector<directory_entry> matches;
        std::copy_if(recursive_directory_iterator(*input_dcp), recursive_directory_iterator(), std::back_inserter(matches), [](directory_entry const& entry) {
-               return boost::algorithm::starts_with(entry.path().leaf().string(), "j2c");
+               return boost::algorithm::starts_with(entry.path().filename().string(), "j2c");
        });
 
        BOOST_REQUIRE_EQUAL(matches.size(), 1U);