test: use gst_util_uint64_scale_round() for timestamp to sample calculation

This commit is contained in:
Tim-Philipp Müller 2014-11-27 11:20:36 +00:00
parent 65ff17660b
commit 4459088c6d

View file

@ -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 *