From: Andre Noll Date: Sun, 13 Mar 2022 19:49:41 +0000 (+0100) Subject: para_play: Compute the current time more accurately. X-Git-Tag: v0.7.2~27 X-Git-Url: http://git.tuebingen.mpg.de/?a=commitdiff_plain;h=a1632855167b61fd987b2bc8f3e6d2ef0972d0ea;hp=a1632855167b61fd987b2bc8f3e6d2ef0972d0ea;p=paraslash.git para_play: Compute the current time more accurately. Currently get_play_time() throws away the subsecond part of the timeval and returns a number in seconds. We can improve on that by letting the function return milliseconds instead. However, with milliseconds we must perform multiplications using 64 bit integers to avoid integer overflows. This also affects the pause and play commands, which should now reposition the stream more accurately. It still won't be perfect, though, because play.c has no way of knowing the number of the chunk which is currently being decoded. ---