summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-04-01 21:44:06 +0100
committerCarl Hetherington <cth@carlh.net>2014-04-01 21:44:06 +0100
commit1eeba876ce09cedfa4c779bf3554372c01dc34c5 (patch)
tree3b1590b8b1e25a985a7805e28187d454df52a1a6 /test
parent70b1f90c6986e36afc2af36ee127f6a3eb8653cd (diff)
Various small fixes.
Diffstat (limited to 'test')
-rw-r--r--test/seek_zero_test.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/seek_zero_test.cc b/test/seek_zero_test.cc
index cda4f0729..150e12d90 100644
--- a/test/seek_zero_test.cc
+++ b/test/seek_zero_test.cc
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2013 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2013-2014 Carl Hetherington <cth@carlh.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -34,6 +34,7 @@
using std::cout;
using boost::shared_ptr;
using boost::dynamic_pointer_cast;
+using boost::optional;
BOOST_AUTO_TEST_CASE (seek_zero_test)
{
@@ -47,8 +48,8 @@ BOOST_AUTO_TEST_CASE (seek_zero_test)
wait_for_jobs ();
FFmpegDecoder decoder (content, film->log());
- shared_ptr<ContentVideo> a = decoder.get_video (0, true);
- shared_ptr<ContentVideo> b = decoder.get_video (0, true);
+ optional<ContentVideo> a = decoder.get_video (0, true);
+ optional<ContentVideo> b = decoder.get_video (0, true);
BOOST_CHECK_EQUAL (a->frame, 0);
BOOST_CHECK_EQUAL (b->frame, 0);
}