diff options
author | Bastien Nocera <hadess@users.sourceforge.net> | 2005-04-19 17:42:29 +0000 |
---|---|---|
committer | Bastien Nocera <hadess@users.sourceforge.net> | 2005-04-19 17:42:29 +0000 |
commit | c118e5e64393d35406b5978acae1b4fa1032bbe2 (patch) | |
tree | fd2eb961b9b09bb3b37d690171f4ce75c309839a /src/xine-engine/audio_decoder.c | |
parent | 66df186329773213a970fd05b70918feeab873a0 (diff) | |
download | xine-lib-c118e5e64393d35406b5978acae1b4fa1032bbe2.tar.gz xine-lib-c118e5e64393d35406b5978acae1b4fa1032bbe2.tar.bz2 |
**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
Diffstat (limited to 'src/xine-engine/audio_decoder.c')
-rw-r--r-- | src/xine-engine/audio_decoder.c | 9 |
1 files changed, 7 insertions, 2 deletions
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 */ |