From 0a391246fd4e8a3c64f3d817cd8ec11c9aaaffd9 Mon Sep 17 00:00:00 2001 From: Thibaut Mattern Date: Fri, 27 Jan 2006 07:46:09 +0000 Subject: Adapt the engine to the new list code. CVS patchset: 7848 CVS date: 2006/01/27 07:46:09 --- src/audio_out/audio_alsa_out.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/audio_out') diff --git a/src/audio_out/audio_alsa_out.c b/src/audio_out/audio_alsa_out.c index c0a9e9ba0..837e824d4 100644 --- a/src/audio_out/audio_alsa_out.c +++ b/src/audio_out/audio_alsa_out.c @@ -26,7 +26,7 @@ * (c) 2001 James Courtier-Dutton * * - * $Id: audio_alsa_out.c,v 1.157 2006/01/25 17:40:59 miguelfreitas Exp $ + * $Id: audio_alsa_out.c,v 1.158 2006/01/27 07:46:09 tmattern Exp $ */ #ifdef HAVE_CONFIG_H @@ -223,6 +223,7 @@ static void *ao_alsa_handle_event_thread(void *data) { xine_event_t event; xine_audio_level_data_t data; xine_stream_t *stream; + xine_list_iterator_t ite; this->mixer.right_vol = right_vol; this->mixer.left_vol = left_vol; @@ -242,8 +243,9 @@ static void *ao_alsa_handle_event_thread(void *data) { event.data_length = sizeof(data); pthread_mutex_lock(&this->class->xine->streams_lock); - for(stream = xine_list_first_content(this->class->xine->streams); - stream; stream = xine_list_next_content(this->class->xine->streams)) { + for(ite = xine_list_front(this->class->xine->streams); + ite; ite = xine_list_next(this->class->xine->streams, ite)) { + stream = xine_list_get_value(this->class->xine->streams, ite); event.stream = stream; xine_event_send(stream, &event); } -- cgit v1.2.3