diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-01-03 00:47:32 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-01-03 00:47:32 +0000 |
| commit | 821b556975c44bcb2c8607fc26462b7b79db2fe6 (patch) | |
| tree | 14a2ce9227c8ab385ee2b86cc57e54ab08a9a8cd /test/seek_zero_test.cc | |
| parent | 3dfdd5795cf6514e15fdbece54c28f3bddc2aadc (diff) | |
Various fix-ups.
Diffstat (limited to 'test/seek_zero_test.cc')
| -rw-r--r-- | test/seek_zero_test.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/seek_zero_test.cc b/test/seek_zero_test.cc index 0987f6b9b..c20c99ee7 100644 --- a/test/seek_zero_test.cc +++ b/test/seek_zero_test.cc @@ -32,6 +32,7 @@ using std::cout; using boost::shared_ptr; +using boost::dynamic_pointer_cast; BOOST_AUTO_TEST_CASE (seek_zero_test) { @@ -45,14 +46,12 @@ BOOST_AUTO_TEST_CASE (seek_zero_test) wait_for_jobs (); FFmpegDecoder decoder (film, content, true, false); - shared_ptr<Decoded> a = decoder.peek (); - cout << a->content_time << "\n"; + shared_ptr<DecodedVideo> a = dynamic_pointer_cast<DecodedVideo> (decoder.peek ()); decoder.seek (0, true); - shared_ptr<Decoded> b = decoder.peek (); - cout << b->content_time << "\n"; + 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); + BOOST_CHECK_EQUAL (a->frame, b->frame); } |
