From: Miguel F. <mig...@us...> - 2002-05-24 22:09:49
|
Update of /cvsroot/xine/xine-lib/src/xine-engine In directory usw-pr-cvs1:/tmp/cvs-serv10579/src/xine-engine Modified Files: audio_decoder.c video_decoder.c Log Message: - dxr3 cleanup from Michael Roitzsch <ama...@fr...> - audio fifo size adjust Index: audio_decoder.c =================================================================== RCS file: /cvsroot/xine/xine-lib/src/xine-engine/audio_decoder.c,v retrieving revision 1.72 retrieving revision 1.73 diff -u -r1.72 -r1.73 --- audio_decoder.c 29 Apr 2002 23:32:00 -0000 1.72 +++ audio_decoder.c 24 May 2002 22:09:44 -0000 1.73 @@ -266,7 +266,14 @@ return; } - this->audio_fifo = fifo_buffer_new (50, 8192); + /* The fifo size is based on dvd playback where buffers are filled + * with 2k of data. With 230 buffers and a typical audio data rate + * of 1.8 Mbit/s (four ac3 streams), the fifo can hold about 2 seconds + * of audio, wich should be enough to compensate for drive delays. + * We provide buffers of 8k size instead of 2k for demuxers sending + * larger chunks. + */ + this->audio_fifo = fifo_buffer_new (230, 8192); this->audio_channel_user = -1; this->audio_channel_auto = 0; this->audio_type = 0; Index: video_decoder.c =================================================================== RCS file: /cvsroot/xine/xine-lib/src/xine-engine/video_decoder.c,v retrieving revision 1.84 retrieving revision 1.85 diff -u -r1.84 -r1.85 --- video_decoder.c 29 Apr 2002 23:32:00 -0000 1.84 +++ video_decoder.c 24 May 2002 22:09:45 -0000 1.85 @@ -282,6 +282,13 @@ struct sched_param pth_params; int err; + /* The fifo size is based on dvd playback where buffers are filled + * with 2k of data. With 500 buffers and a typical video data rate + * of 4 Mbit/s, the fifo can hold about 2 seconds of video, wich + * should be enough to compensate for drive delays. + * We provide buffers of 8k size instead of 2k for demuxers sending + * larger chunks. + */ this->video_fifo = fifo_buffer_new (500, 8192); pthread_attr_init(&pth_attrs); |