Add a test for profiling.
authorCarl Hetherington <cth@carlh.net>
Sun, 3 Sep 2017 19:24:57 +0000 (20:24 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 3 Sep 2017 19:24:57 +0000 (20:24 +0100)
test/ffmpeg_audio_test.cc

index ec5752b9d994e5f0d08d4faf4eeb7e8251db2ac6..7b77a7d8f0f79936f7d8e8e9f6424f36abc9d964 100644 (file)
@@ -29,6 +29,8 @@
 #include "lib/video_content.h"
 #include "lib/ratio.h"
 #include "lib/ffmpeg_content.h"
 #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>
 #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 ()) {}
+}