mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
hlsdemux: Prevent rounding errors due to division by using gst_util_uint64_scale()
This commit is contained in:
parent
6e54b8ee53
commit
4dcacc1773
1 changed files with 2 additions and 2 deletions
|
@ -1255,8 +1255,8 @@ gst_hls_demux_schedule (GstHLSDemux * demux)
|
|||
/* schedule the next update using the target duration field of the
|
||||
* playlist */
|
||||
demux->next_update +=
|
||||
gst_m3u8_client_get_current_fragment_duration (demux->client)
|
||||
/ GST_SECOND * G_USEC_PER_SEC * update_factor;
|
||||
gst_util_uint64_scale (gst_m3u8_client_get_current_fragment_duration
|
||||
(demux->client), G_USEC_PER_SEC * update_factor, GST_SECOND);
|
||||
GST_DEBUG_OBJECT (demux, "Next update scheduled at %" G_GINT64_FORMAT,
|
||||
demux->next_update);
|
||||
|
||||
|
|
Loading…
Reference in a new issue