diff options
author | Ewald Snel <esnel@users.sourceforge.net> | 2002-12-27 22:49:38 +0000 |
---|---|---|
committer | Ewald Snel <esnel@users.sourceforge.net> | 2002-12-27 22:49:38 +0000 |
commit | 651bba5ba5847cc7c589631cf780937b3f948eae (patch) | |
tree | bd62e6a8d463eac8b6a6e5636ad4eef453ba51ae /src/xine-engine/audio_decoder.c | |
parent | 38cf26ec4edfe9c455372cf428601a1b0ff5bdad (diff) | |
download | xine-lib-651bba5ba5847cc7c589631cf780937b3f948eae.tar.gz xine-lib-651bba5ba5847cc7c589631cf780937b3f948eae.tar.bz2 |
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
Diffstat (limited to 'src/xine-engine/audio_decoder.c')
-rw-r--r-- | src/xine-engine/audio_decoder.c | 6 |
1 files changed, 5 insertions, 1 deletions
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--; |