diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-03-25 09:41:36 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-03-25 09:41:36 +0000 |
| commit | ee77b3cf5f59f775e75e628aa28e8f2f9f941530 (patch) | |
| tree | bbf9ab4ef1f0f633591889cbbd6b7b65de8f5a57 /test/seek_zero_test.cc | |
| parent | e6f28e7cda23c1ba3c49cc1bf2dc1491c2f87160 (diff) | |
It builds.
Diffstat (limited to 'test/seek_zero_test.cc')
| -rw-r--r-- | test/seek_zero_test.cc | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/test/seek_zero_test.cc b/test/seek_zero_test.cc index 07f9e3694..cda4f0729 100644 --- a/test/seek_zero_test.cc +++ b/test/seek_zero_test.cc @@ -28,6 +28,7 @@ #include "lib/ratio.h" #include "lib/dcp_content_type.h" #include "lib/ffmpeg_decoder.h" +#include "lib/content_video.h" #include "test.h" using std::cout; @@ -45,13 +46,9 @@ BOOST_AUTO_TEST_CASE (seek_zero_test) film->examine_and_add_content (content); wait_for_jobs (); - FFmpegDecoder decoder (content, film->log(), true, false, false); - shared_ptr<DecodedVideo> a = dynamic_pointer_cast<DecodedVideo> (decoder.peek ()); - decoder.seek (ContentTime(), true); - shared_ptr<DecodedVideo> b = dynamic_pointer_cast<DecodedVideo> (decoder.peek ()); - - /* a will be after no seek, and b after a seek to zero, which should - have the same effect. - */ - BOOST_CHECK_EQUAL (a->content_time, b->content_time); + FFmpegDecoder decoder (content, film->log()); + shared_ptr<ContentVideo> a = decoder.get_video (0, true); + shared_ptr<ContentVideo> b = decoder.get_video (0, true); + BOOST_CHECK_EQUAL (a->frame, 0); + BOOST_CHECK_EQUAL (b->frame, 0); } |
