summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2014-11-27 11:20:36 +0000
committerTim-Philipp Müller <tim@centricular.com>2014-11-27 11:20:36 +0000
commit4459088c6d452b7e3e7170222b151344953d14e8 (patch)
tree5451e454c46af3fc73da811883d0dc91fb86549d
parent65ff17660b65e29e4888142009d3045825c7fa15 (diff)
test: use gst_util_uint64_scale_round() for timestamp to sample calculation
-rw-r--r--tests/icles/test-accurate-seek.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/icles/test-accurate-seek.c b/tests/icles/test-accurate-seek.c
index 9e9da104e..16e137d75 100644
--- a/tests/icles/test-accurate-seek.c
+++ b/tests/icles/test-accurate-seek.c
@@ -41,7 +41,7 @@ sample_to_nanotime (guint sample)
static guint
nanotime_to_sample (GstClockTime nanotime)
{
- return nanotime * SAMPLE_FREQ / GST_SECOND;
+ return gst_util_uint64_scale_round (nanotime, SAMPLE_FREQ, GST_SECOND);
}
static GstBuffer *