<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 26, 2017 at 8:02 PM, Francois Cartegnie <span dir="ltr"><<a href="mailto:fcvlcdev@free.fr" target="_blank">fcvlcdev@free.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Le 26/07/2017 à 13:43, Zhao Zhili a écrit :<br>
<br>
>              mutex_cleanup_push(&lock);<br>
> -            while(vlc_cond_timedwait(&<wbr>waitcond, &lock, i_deadline) == 0<br>
> -                 && i_deadline < mdate());<br>
> +            vlc_cond_timedwait(&waitcond, &lock, i_deadline);<br>
>              vlc_cleanup_pop();<br>
<br>
</span>The loop is there to deal with spurious wakeups.<br>
<br></blockquote><div><br>There is a chance it need to wakeup early and do bufferize again. I think it's better <br>be in advance when awakening than late. <br></div><div><br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Francois<br>
<br>
______________________________<wbr>_________________<br>
vlc-devel mailing list<br>
To unsubscribe or modify your subscription options:<br>
<a href="https://mailman.videolan.org/listinfo/vlc-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/<wbr>listinfo/vlc-devel</a></blockquote></div><br></div></div>