From 61a78ca5d3fcd6e820630ae1caf3be7310806cc8 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 3 Sep 2017 20:24:57 +0100 Subject: [PATCH] Add a test for profiling. --- test/ffmpeg_audio_test.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/ffmpeg_audio_test.cc b/test/ffmpeg_audio_test.cc index ec5752b9d..7b77a7d8f 100644 --- a/test/ffmpeg_audio_test.cc +++ b/test/ffmpeg_audio_test.cc @@ -29,6 +29,8 @@ #include "lib/video_content.h" #include "lib/ratio.h" #include "lib/ffmpeg_content.h" +#include "lib/content_factory.h" +#include "lib/player.h" #include "test.h" #include #include @@ -123,3 +125,15 @@ BOOST_AUTO_TEST_CASE (ffmpeg_audio_test) } } } + +/** Decode a file containing truehd so we can profile it */ +BOOST_AUTO_TEST_CASE (ffmpeg_audio_test2) +{ + shared_ptr film = new_test_film2 ("ffmpeg_audio_test2"); + shared_ptr content = content_factory(film, private_data / "wayne.mkv").front(); + film->examine_and_add_content (content); + BOOST_REQUIRE (!wait_for_jobs ()); + + shared_ptr player (new Player (film, film->playlist ())); + while (!player->pass ()) {} +} -- 2.30.2