From: Thibaut M. <tma...@us...> - 2003-10-16 22:15:13
|
Update of /cvsroot/xine/xine-lib/src/input In directory sc8-pr-cvs1:/tmp/cvs-serv24678 Modified Files: net_buf_ctrl.c Log Message: Avoid yoyo effect with poorly interleaved streams. Index: net_buf_ctrl.c =================================================================== RCS file: /cvsroot/xine/xine-lib/src/input/net_buf_ctrl.c,v retrieving revision 1.29 retrieving revision 1.30 diff -u -r1.29 -r1.30 --- net_buf_ctrl.c 15 Oct 2003 23:47:12 -0000 1.29 +++ net_buf_ctrl.c 16 Oct 2003 22:15:09 -0000 1.30 @@ -40,6 +40,8 @@ #define DEFAULT_LOW_WATER_MARK 1 #define DEFAULT_HIGH_WATER_MARK 5000 /* in 1/1000 s */ +#define FULL_FIFO_MARK 5 /* buffers free */ + #define WRAP_THRESHOLD 5*90000 /* from the asf demuxer */ #define FIFO_PUT 0 @@ -403,7 +405,7 @@ /* Don't pause if the other fifo is full because the next put() will restart the engine */ - if (other_fifo_free > 2) { + if (other_fifo_free > FULL_FIFO_MARK) { this->buffering = 1; this->progress = 0; report_progress (this->stream, 0); |