summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2010-01-19 09:25:35 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2010-01-19 09:26:37 +0100
commit6dfc0270eccc394fc46f4c83127fc7b600a991cd (patch)
treec48eb8fa6430626a7e3bcc0269c82fa373587af1
parent125f7dfdb058888a4f2ba0e837259be1e1a2ff2b (diff)
audio: Use rounding scaling functions for GST_CLOCK_TIME_TO_FRAMES and _FRAMES_TO_CLOCK_TIME
Fixes bug #607381.
-rw-r--r--gst-libs/gst/audio/audio.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst-libs/gst/audio/audio.h b/gst-libs/gst/audio/audio.h
index 7d1eae5e..12a12e00 100644
--- a/gst-libs/gst/audio/audio.h
+++ b/gst-libs/gst/audio/audio.h
@@ -58,7 +58,7 @@ G_BEGIN_DECLS
* Calculate clocktime from sample @frames and @rate.
*/
#define GST_FRAMES_TO_CLOCK_TIME(frames, rate) \
- ((GstClockTime) gst_util_uint64_scale (frames, GST_SECOND, rate))
+ ((GstClockTime) gst_util_uint64_scale_round (frames, GST_SECOND, rate))
/**
* GST_CLOCK_TIME_TO_FRAMES:
@@ -68,7 +68,7 @@ G_BEGIN_DECLS
* Calculate frames from @clocktime and sample @rate.
*/
#define GST_CLOCK_TIME_TO_FRAMES(clocktime, rate) \
- gst_util_uint64_scale (clocktime, rate, GST_SECOND)
+ gst_util_uint64_scale_round (clocktime, rate, GST_SECOND)
/**
* GST_AUDIO_DEF_RATE: