w32threads: wait for the waked thread in pthread_cond_signal.
authorSergey Radionov <RSATom@gmail.com>
Wed, 21 Dec 2011 02:08:56 +0000 (09:08 +0700)
committerRonald S. Bultje <rsbultje@gmail.com>
Wed, 21 Dec 2011 04:21:10 +0000 (20:21 -0800)
commit2003a29284660255016b1ec4bd5dfb8d53e6a852
treedfdc3b0258edb32f8d83d048b463f1f549904ea7
parent021914e27fe943649e26ea82b2bbd67c89c7c324
w32threads: wait for the waked thread in pthread_cond_signal.

This fixes a deadlock VLC triggered with multithreaded decoding. The
wait forces one of the current waiters to wake and not the thread
which calls pthread_cond_signal() itself.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
libavcodec/w32pthreads.h