summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-09-03 20:24:57 +0100
committerCarl Hetherington <cth@carlh.net>2017-09-03 20:24:57 +0100
commit61a78ca5d3fcd6e820630ae1caf3be7310806cc8 (patch)
tree7a0ad742a64113d0743e7fbcc5211b5fae097066
parent48cd8b6a44ab689ad2eb8e6d86e086def995d9ba (diff)
Add a test for profiling.
-rw-r--r--test/ffmpeg_audio_test.cc14
1 files changed, 14 insertions, 0 deletions
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 <dcp/cpl.h>
#include <dcp/dcp.h>
@@ -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> film = new_test_film2 ("ffmpeg_audio_test2");
+ shared_ptr<Content> content = content_factory(film, private_data / "wayne.mkv").front();
+ film->examine_and_add_content (content);
+ BOOST_REQUIRE (!wait_for_jobs ());
+
+ shared_ptr<Player> player (new Player (film, film->playlist ()));
+ while (!player->pass ()) {}
+}