[vlc-devel] vlc: svn commit r24216 (ivoire)

Remi Denis-Courmont rdenis at simphalempin.com
Thu Jan 17 10:00:11 CET 2008




On Fri, 11 Jan 2008 17:32:12 +0100, "Rafaël Carré"
<rafael.carre at gmail.com> wrote:
> 2008/1/10, Rémi Denis-Courmont <rdenis at simphalempin.com>:
>> Le Thursday 10 January 2008 20:11:55 Subversion daemon, vous avez
> écrit:
>> > r24216 | ivoire | 2008-01-10 19:11:55 +0100 (Thu, 10 Jan 2008) | 2
> lines
>> > Changed paths:
>> >    M /trunk/modules/misc/audioscrobbler.c
>> >
>> > "vlc_*_timedwait() expect a time in microseconds". Patch by funman.
>>
>> This whole piece of code makes no sense whatsoever. It mixes different
> clocks
>> with intrinsically incompatible time origins.
> 
> Should it use mdate() instead of time() ?

If you really need to know the time in vlc_cond_timedwait sense, then you
must use mdate(). However, it should be sufficient to check whether the
vlc_cond_timedwait() call timed out (meaning mdate() >= deadline), or was
signaled (mdate() < deadline, apart from scheduling issues).





More information about the vlc-devel mailing list