From 4459088c6d452b7e3e7170222b151344953d14e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 27 Nov 2014 11:20:36 +0000 Subject: [PATCH] test: use gst_util_uint64_scale_round() for timestamp to sample calculation --- tests/icles/test-accurate-seek.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/icles/test-accurate-seek.c b/tests/icles/test-accurate-seek.c index 9e9da104ef..16e137d757 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 *