From d84f253422522de188a6c0c86897939f7f41651a Mon Sep 17 00:00:00 2001 From: Stefan Holst Date: Sun, 15 Dec 2002 16:48:56 +0000 Subject: these new methods nbc_set_high_water_mark nbc_set_low_water_mark gives network input plugins a bit more control over buffering. CVS patchset: 3544 CVS date: 2002/12/15 16:48:56 --- src/input/net_buf_ctrl.c | 7 +++++++ src/input/net_buf_ctrl.h | 4 ++++ 2 files changed, 11 insertions(+) (limited to 'src') diff --git a/src/input/net_buf_ctrl.c b/src/input/net_buf_ctrl.c index 12ede3d53..e31049284 100644 --- a/src/input/net_buf_ctrl.c +++ b/src/input/net_buf_ctrl.c @@ -132,3 +132,10 @@ nbc_t *nbc_init (xine_stream_t *stream) { return this; } +void nbc_set_high_water_mark(nbc_t *this, int value) { + this->high_water_mark = value; +} + +void nbc_set_low_water_mark(nbc_t *this, int value) { + this->low_water_mark = value; +} diff --git a/src/input/net_buf_ctrl.h b/src/input/net_buf_ctrl.h index 0f6e515c6..8f5f96570 100644 --- a/src/input/net_buf_ctrl.h +++ b/src/input/net_buf_ctrl.h @@ -33,4 +33,8 @@ void nbc_check_buffers (nbc_t *this); void nbc_close (nbc_t *this); +void nbc_set_high_water_mark(nbc_t *this, int value); + +void nbc_set_low_water_mark(nbc_t *this, int value); + #endif -- cgit v1.2.3