mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
baseaudiosink: use gst_util_uint64_scale_int when appropriate
It's probably safer this way.
This commit is contained in:
parent
369cf3f14a
commit
fbde258be6
1 changed files with 2 additions and 1 deletions
|
@ -1427,7 +1427,8 @@ gst_base_audio_sink_get_alignment (GstBaseAudioSink * sink,
|
|||
diff = sink->next_sample - sample_offset;
|
||||
|
||||
/* calculate the max allowed drift in units of samples. */
|
||||
maxdrift = (ringbuf->spec.rate * sink->priv->alignment_threshold) / GST_MSECOND;
|
||||
max_sample_diff = gst_util_uint64_scale_int (sink->priv->alignment_threshold,
|
||||
ringbuf->spec.rate, GST_SECOND);
|
||||
|
||||
/* calc align with previous sample */
|
||||
align = sink->next_sample - sample_offset;
|
||||
|
|
Loading…
Reference in a new issue