Make a DCP in the ffmpeg no-audio test case.
authorCarl Hetherington <cth@carlh.net>
Tue, 10 May 2016 23:31:22 +0000 (00:31 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 18 May 2016 10:50:29 +0000 (11:50 +0100)
test/ffmpeg_audio_only_test.cc

index a0c39b9c1c2954f72ba1236464d38bc3c82e6f4e..8541ccecae04cf62a338cd6718640c2aa1768e65 100644 (file)
@@ -19,6 +19,7 @@
 
 #include "lib/film.h"
 #include "lib/ffmpeg_content.h"
+#include "lib/dcp_content_type.h"
 #include "test.h"
 #include <boost/test/unit_test.hpp>
 
@@ -29,9 +30,10 @@ BOOST_AUTO_TEST_CASE (ffmpeg_audio_only_test)
 {
        shared_ptr<Film> film = new_test_film ("ffmpeg_audio_only_test");
        film->set_name ("test_film");
+       film->set_dcp_content_type (DCPContentType::from_pretty_name ("Test"));
        shared_ptr<FFmpegContent> c (new FFmpegContent (film, "test/data/sine_440.mp3"));
        film->examine_and_add_content (c);
        wait_for_jobs ();
-       film->write_metadata ();
+       film->make_dcp ();
+       wait_for_jobs ();
 }
-