Fix test crash.
authorCarl Hetherington <cth@carlh.net>
Tue, 17 May 2016 13:02:51 +0000 (14:02 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 18 May 2016 10:50:29 +0000 (11:50 +0100)
test/audio_delay_test.cc

index a538da4ed655f58c46821bf8fef924e6b4bf4095..07113edaca6a069fa5fdcff6b686f06cba2c90ab 100644 (file)
@@ -54,9 +54,9 @@ void test_audio_delay (int delay_in_ms)
        film->set_name (film_name);
 
        shared_ptr<FFmpegContent> content (new FFmpegContent (film, "test/data/staircase.wav"));
-       content->audio->set_delay (delay_in_ms);
        film->examine_and_add_content (content);
        wait_for_jobs ();
+       content->audio->set_delay (delay_in_ms);
 
        film->make_dcp ();
        wait_for_jobs ();