Handle multiple audio streams in a single piece of content
[dcpomatic.git] / test / seek_zero_test.cc
index f00180c89106ea14eef59e291731ffda20e6e65f..3aef113734fbebfd7092d2aa121a28808bf40819 100644 (file)
@@ -52,7 +52,7 @@ BOOST_AUTO_TEST_CASE (seek_zero_test)
        /* 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 ();
        }