diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-05-27 20:55:51 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-06-02 13:38:21 +0100 |
| commit | 0a93237cb5e4642d3b698ff9b7d0cfae5401478c (patch) | |
| tree | b0d5255ae2b90d1c9ef489e78239c2f081ea0a9e /test/ffmpeg_decoder_seek_test.cc | |
| parent | 608c146eb09fac2a8fc60e1a72591f6bb8364e1f (diff) | |
Handle multiple audio streams in a single piece of content
in a similar way to the V1 patch.
Diffstat (limited to 'test/ffmpeg_decoder_seek_test.cc')
| -rw-r--r-- | test/ffmpeg_decoder_seek_test.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ffmpeg_decoder_seek_test.cc b/test/ffmpeg_decoder_seek_test.cc index f3504ffc5..c15bf8c98 100644 --- a/test/ffmpeg_decoder_seek_test.cc +++ b/test/ffmpeg_decoder_seek_test.cc @@ -41,10 +41,10 @@ using boost::shared_ptr; using boost::optional; static void -check (FFmpegDecoder& decoder, int frame) +check (shared_ptr<FFmpegDecoder> decoder, int frame) { list<ContentVideo> v; - v = decoder.get_video (frame, true); + v = decoder->get_video (frame, true); BOOST_CHECK (v.size() == 1); BOOST_CHECK_EQUAL (v.front().frame, frame); } @@ -63,7 +63,7 @@ test (boost::filesystem::path file, vector<int> frames) film->examine_and_add_content (content); wait_for_jobs (); shared_ptr<Log> log (new NullLog); - FFmpegDecoder decoder (content, log); + shared_ptr<FFmpegDecoder> decoder (new FFmpegDecoder (content, log)); for (vector<int>::const_iterator i = frames.begin(); i != frames.end(); ++i) { check (decoder, *i); |
