X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fffmpeg_decoder_seek_test.cc;h=b8bfe3532d144d6f54df28f3e705a7b8d9c57783;hb=83bb88d42e036292db6f7108376ce5f40cc604c4;hp=46d82b0229679a297fc281829c421f59d412cf00;hpb=b0c7c1146423f2f3f60aa124d8ea5a9671acff0b;p=dcpomatic.git diff --git a/test/ffmpeg_decoder_seek_test.cc b/test/ffmpeg_decoder_seek_test.cc index 46d82b022..b8bfe3532 100644 --- a/test/ffmpeg_decoder_seek_test.cc +++ b/test/ffmpeg_decoder_seek_test.cc @@ -20,6 +20,7 @@ /** @file test/ffmpeg_decoder_seek_test.cc * @brief Check seek() with FFmpegDecoder. + * @ingroup specific * * This doesn't check that the contents of those frames are right, which * it probably should. @@ -45,10 +46,11 @@ using boost::shared_ptr; using boost::optional; static optional stored; -static void +static bool store (ContentVideo v) { stored = v; + return true; } static void @@ -68,11 +70,10 @@ test (boost::filesystem::path file, vector frames) BOOST_REQUIRE (boost::filesystem::exists (path)); shared_ptr film = new_test_film ("ffmpeg_decoder_seek_test_" + file.string()); - shared_ptr content (new FFmpegContent (film, path)); + shared_ptr content (new FFmpegContent (path)); film->examine_and_add_content (content); wait_for_jobs (); - shared_ptr log (new NullLog); - shared_ptr decoder (new FFmpegDecoder (content, log)); + shared_ptr decoder (new FFmpegDecoder (film, content, false)); decoder->video->Data.connect (bind (&store, _1)); for (vector::const_iterator i = frames.begin(); i != frames.end(); ++i) { @@ -99,5 +100,5 @@ BOOST_AUTO_TEST_CASE (ffmpeg_decoder_seek_test) frames.push_back (999); frames.push_back (15); - test ("prophet_clip.mkv", frames); + test ("prophet_long_clip.mkv", frames); }