From c118e5e64393d35406b5978acae1b4fa1032bbe2 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Tue, 19 Apr 2005 17:42:29 +0000 Subject: **BUGFIX** Send the XINE_EVENT_UI_CHANNELS_CHANGED UI event when SPU, or audio channels are added CVS patchset: 7468 CVS date: 2005/04/19 17:42:29 --- src/xine-engine/audio_decoder.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/xine-engine/audio_decoder.c') diff --git a/src/xine-engine/audio_decoder.c b/src/xine-engine/audio_decoder.c index 6338eac6c..dd4a1fb3f 100644 --- a/src/xine-engine/audio_decoder.c +++ b/src/xine-engine/audio_decoder.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: audio_decoder.c,v 1.133 2004/12/16 13:59:06 mroi Exp $ + * $Id: audio_decoder.c,v 1.134 2005/04/19 17:42:29 hadess Exp $ * * * functions that implement audio decoding @@ -255,7 +255,8 @@ static void *audio_decoder_loop (void *stream_gen) { if ( (i==stream->audio_track_map_entries) || (stream->audio_track_map[i] != buf->type) ) { - + xine_event_t ui_event; + j = stream->audio_track_map_entries; if (j >= 50) @@ -267,6 +268,10 @@ static void *audio_decoder_loop (void *stream_gen) { } stream->audio_track_map[i] = buf->type; stream->audio_track_map_entries++; + + ui_event.type = XINE_EVENT_UI_CHANNELS_CHANGED; + ui_event.data_length = 0; + xine_event_send (stream, &ui_event); } /* find out which audio type to decode */ -- cgit v1.2.3