[FFmpeg-devel] [PATCH v3] lavu: add av_gettime_relative() and use it.

LANGLOIS Olivier PIS -EXT olivier.pis.langlois at transport.alstom.com
Fri May 2 17:54:49 CEST 2014


> -----Original Message-----
> From: ffmpeg-devel-bounces at ffmpeg.org [mailto:ffmpeg-devel-
> bounces at ffmpeg.org] On Behalf Of Marton Balint
> Sent: Thursday, May 01, 2014 8:28 PM
>
> On Thu, 1 May 2014, Olivier Langlois wrote:
>
> > Also add similar av_usleep_relative().
> >
>
> Is there a real benefit for an av_usleep_relative? As far as I know av_usleep
> is not affected by clock jumps.
>
Martin,

this is an excellent question. After verification in kernel/hrtimer.c, nanosleep() is using CLOCK_MONOTONIC despite that what is written in the man page. So your knowledge is exact and the answer to your question is no.

If noone disagree, I will simply just remove this new function in the next version of my patch.

thank you,
Olivier

Please ignore the confidentiality notice below.
It is automatically added without my consent.



________________________________
CONFIDENTIALITY : This e-mail and any attachments are confidential and may be privileged. If you are not a named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose or store or copy the information in any medium.


More information about the ffmpeg-devel mailing list