Update of /cvsroot/xine/xine-lib/src/audio_out
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv14252/src/audio_out

Modified Files:
        audio_alsa_out.c 
Log Message:
Fix race condition in alsa audio out driver.
thanks Kirill Belokurov and Matthias Kretz


Index: audio_alsa_out.c
===================================================================
RCS file: /cvsroot/xine/xine-lib/src/audio_out/audio_alsa_out.c,v
retrieving revision 1.166
retrieving revision 1.167
diff -u -r1.166 -r1.167
--- audio_alsa_out.c    20 Feb 2007 00:04:50 -0000      1.166
+++ audio_alsa_out.c    25 Feb 2007 21:54:04 -0000      1.167
@@ -162,7 +162,6 @@
 static void *ao_alsa_handle_event_thread(void *data) {
   alsa_driver_t  *this = (alsa_driver_t *) data;
 
-  this->mixer.running = 1;
   do {
 
     if(my_snd_mixer_wait(this->mixer.handle, 333) > 0) {
@@ -1292,6 +1291,8 @@
   if (send_events && found) {
     pthread_attr_t       pth_attrs;
     struct sched_param   pth_params;
+  
+    this->mixer.running = 1;
 
     pthread_attr_init(&pth_attrs);
     


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Xine-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xine-cvslog

Reply via email to