Merge branch 'content-burn-subs' into 2.0
[dcpomatic.git] / test / seek_zero_test.cc
index f00180c89106ea14eef59e291731ffda20e6e65f..7f661b21cf11183ead22b494a080146837f5c0c6 100644 (file)
@@ -48,11 +48,11 @@ BOOST_AUTO_TEST_CASE (seek_zero_test)
        film->examine_and_add_content (content);
        wait_for_jobs ();
        content->set_scale (VideoContentScale (Ratio::from_id ("185")));
-       
+
        /* Work out the first video frame index that we will be given, taking into account
         * the difference between first video and first audio.
         */
-       ContentTime video_delay = content->first_video().get() - content->audio_stream()->first_audio.get();
+       ContentTime video_delay = content->first_video().get() - content->ffmpeg_audio_streams().front()->first_audio.get();
        if (video_delay < ContentTime ()) {
                video_delay = ContentTime ();
        }