[vlc-devel] [PATCH] demux: adaptive: fix inverted logic and don't do wait in a loop
Francois Cartegnie
fcvlcdev at free.fr
Wed Jul 26 14:02:57 CEST 2017
Le 26/07/2017 à 13:43, Zhao Zhili a écrit :
> mutex_cleanup_push(&lock);
> - while(vlc_cond_timedwait(&waitcond, &lock, i_deadline) == 0
> - && i_deadline < mdate());
> + vlc_cond_timedwait(&waitcond, &lock, i_deadline);
> vlc_cleanup_pop();
The loop is there to deal with spurious wakeups.
Francois
More information about the vlc-devel
mailing list