ALSA: fix signaling race condition
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 30 Aug 2009 20:21:15 +0000 (23:21 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 30 Aug 2009 20:21:15 +0000 (23:21 +0300)
commit8a624dc920f220e2f9e9f496499745d78e1ec07e
tree91146069f76198f58bb1db7c1976780387e83e9c
parent068f36829df1a3647cc183119acac49e0dafbd02
ALSA: fix signaling race condition

start_date must be set with the lock held. Otherwise, the condition
statement inside the ALSAThread while() startup loop may fail.
Once signaled, start_date belongs to the ALSA thread, so locking is not
needed anymore.
modules/audio_output/alsa.c