diff --git a/ext/hls/gsthlsdemux.c b/ext/hls/gsthlsdemux.c index 14518a9491..b0a72095fe 100644 --- a/ext/hls/gsthlsdemux.c +++ b/ext/hls/gsthlsdemux.c @@ -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);