summaryrefslogtreecommitdiff
path: root/test/seek_zero_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-05-27 20:55:51 +0100
committerCarl Hetherington <cth@carlh.net>2015-06-02 13:38:21 +0100
commit0a93237cb5e4642d3b698ff9b7d0cfae5401478c (patch)
treeb0d5255ae2b90d1c9ef489e78239c2f081ea0a9e /test/seek_zero_test.cc
parent608c146eb09fac2a8fc60e1a72591f6bb8364e1f (diff)
Handle multiple audio streams in a single piece of content
in a similar way to the V1 patch.
Diffstat (limited to 'test/seek_zero_test.cc')
-rw-r--r--test/seek_zero_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/seek_zero_test.cc b/test/seek_zero_test.cc
index f00180c89..3aef11373 100644
--- a/test/seek_zero_test.cc
+++ b/test/seek_zero_test.cc
@@ -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 ();
}