From 371e3a4c56db171a79bb5eef6ffefaf9e08c9def Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Mon, 24 Dec 2001 12:36:19 +0000 Subject: fix bug reported by Christer Palm CVS patchset: 1295 CVS date: 2001/12/24 12:36:19 --- src/xine-engine/audio_out.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/xine-engine/audio_out.c b/src/xine-engine/audio_out.c index 262f9851f..c1c099fe7 100644 --- a/src/xine-engine/audio_out.c +++ b/src/xine-engine/audio_out.c @@ -17,7 +17,7 @@ * along with self program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: audio_out.c,v 1.38 2001/12/10 12:31:09 jkeil Exp $ + * $Id: audio_out.c,v 1.39 2001/12/24 12:36:19 miguelfreitas Exp $ * * 22-8-2001 James imported some useful AC3 sections from the previous alsa driver. * (c) 2001 Andy Lo A Foe @@ -242,8 +242,6 @@ static void *ao_loop (void *this_gen) { int num_output_frames ; int paused_wait; - this->audio_loop_running = 1; - while ((this->audio_loop_running) || (!this->audio_loop_running && this->out_fifo->first)) { @@ -443,6 +441,7 @@ static int ao_open(ao_instance_t *this, printf("audio_out: pthread already running!\n"); } + this->audio_loop_running = 1; if ((err = pthread_create (&this->audio_thread, NULL, ao_loop, this)) != 0) { @@ -455,8 +454,6 @@ static int ao_open(ao_instance_t *this, } else printf ("audio_out: thread created\n"); - - return this->output_frame_rate; } -- cgit v1.2.3