Verify a whole bunch of DCPs made by unit tests.
[dcpomatic.git] / test / ffmpeg_encoder_test.cc
index aab3fd8ef1c20b2afa2b834b04ec4178ddbea722..4654723b032a0cc9a07f0de2a8d8f1f510e2be96 100644 (file)
@@ -63,14 +63,11 @@ ffmpeg_content_test (int number, boost::filesystem::path content, ExportFormat f
 
        name = String::compose("%1_test%2", name, number);
 
-       shared_ptr<Film> film = new_test_film2 (name, &cl);
-       film->set_name (name);
        auto c = make_shared<FFmpegContent>(content);
+       shared_ptr<Film> film = new_test_film2 (name, {c}, &cl);
+       film->set_name (name);
        film->set_audio_channels (6);
 
-       film->examine_and_add_content (c);
-       BOOST_REQUIRE (!wait_for_jobs ());
-
        film->write_metadata ();
        auto job = make_shared<TranscodeJob>(film);
        auto file = boost::filesystem::path("build") / "test" / String::compose("%1.%2", name, extension);