From 651bba5ba5847cc7c589631cf780937b3f948eae Mon Sep 17 00:00:00 2001 From: Ewald Snel Date: Fri, 27 Dec 2002 22:49:38 +0000 Subject: Fix 'XINE_STREAM_INFO_MAX_SPU_CHANNEL' property - Calculate number of spu channels in video_decoder_loop() - Use 'track_map' for spu channels, just like audio channels CVS patchset: 3700 CVS date: 2002/12/27 22:49:38 --- src/xine-engine/audio_decoder.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (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 104539871..67a18775c 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.96 2002/12/27 00:53:50 guenter Exp $ + * $Id: audio_decoder.c,v 1.97 2002/12/27 22:49:38 esnel Exp $ * * * functions that implement audio decoding @@ -199,6 +199,10 @@ void *audio_decoder_loop (void *stream_gen) { || (stream->audio_track_map[i] != buf->type) ) { j = stream->audio_track_map_entries; + + if (j >= 50) + break; + while (j>i) { stream->audio_track_map[j] = stream->audio_track_map[j-1]; j--; -- cgit v1.2.3