summaryrefslogtreecommitdiff
path: root/test/long_ffmpeg_seek_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/long_ffmpeg_seek_test.cc')
-rw-r--r--test/long_ffmpeg_seek_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/long_ffmpeg_seek_test.cc b/test/long_ffmpeg_seek_test.cc
index 5285d4481..fedd8749b 100644
--- a/test/long_ffmpeg_seek_test.cc
+++ b/test/long_ffmpeg_seek_test.cc
@@ -54,7 +54,7 @@ static string
print_time (DCPTime t, float fps)
{
stringstream s;
- s << t << " " << (float(t) / TIME_HZ) << "s " << (float(t) * fps / TIME_HZ) << "f";
+ s << t << " " << t.seconds() << "s " << t.frames(fps) << "f";
return s.str ();
}
@@ -98,7 +98,7 @@ BOOST_AUTO_TEST_CASE (long_ffmpeg_seek_test)
player->Audio.connect (boost::bind (&process_audio, _1, _2));
for (float i = 0; i < 10; i += 0.1) {
- check (player, i * TIME_HZ);
+ check (player, DCPTime::from_seconds (i));
}
}