X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Fffmpeg_examiner_test.cc;h=b6b2bbf06c5ee543845c31c3644fba430c779800;hb=7b0372776ac4da6a8e4ff29f41a4f08b9b4de506;hp=2900689e52a539d549acf780ee1d966abbe41f36;hpb=5a5324ed3a381a86dfe0a6e3932c1d58fdcd596f;p=dcpomatic.git diff --git a/test/ffmpeg_examiner_test.cc b/test/ffmpeg_examiner_test.cc index 2900689e5..b6b2bbf06 100644 --- a/test/ffmpeg_examiner_test.cc +++ b/test/ffmpeg_examiner_test.cc @@ -21,25 +21,25 @@ /** @file test/ffmpeg_examiner_test.cc * @brief Check that the FFmpegExaminer can extract the first video and audio time * correctly from data/count300bd24.m2ts. + * @ingroup specific */ +#include #include "lib/ffmpeg_examiner.h" #include "lib/ffmpeg_content.h" #include "lib/ffmpeg_audio_stream.h" #include "test.h" -#include -#include using boost::shared_ptr; -using boost::make_shared; +using namespace dcpomatic; BOOST_AUTO_TEST_CASE (ffmpeg_examiner_test) { shared_ptr film = new_test_film ("ffmpeg_examiner_test"); - shared_ptr content = make_shared (film, "test/data/count300bd24.m2ts"); - shared_ptr examiner = make_shared (content); + shared_ptr content (new FFmpegContent ("test/data/count300bd24.m2ts")); + shared_ptr examiner (new FFmpegExaminer (content)); - BOOST_CHECK_EQUAL (examiner->first_video().get(), ContentTime::from_seconds (600)); + BOOST_CHECK_EQUAL (examiner->first_video().get().get(), ContentTime::from_seconds(600).get()); BOOST_CHECK_EQUAL (examiner->audio_streams().size(), 1U); - BOOST_CHECK_EQUAL (examiner->audio_streams()[0]->first_audio.get(), ContentTime::from_seconds (600)); + BOOST_CHECK_EQUAL (examiner->audio_streams()[0]->first_audio.get().get(), ContentTime::from_seconds(600).get()); }