summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStefan Holst <holstsn@users.sourceforge.net>2002-12-15 16:48:56 +0000
committerStefan Holst <holstsn@users.sourceforge.net>2002-12-15 16:48:56 +0000
commitd84f253422522de188a6c0c86897939f7f41651a (patch)
treed820628523e44dbb4b778253e8538c12bfa897c4 /src
parent6561a08a331d86c234422c8d65e1e92b0cba55a1 (diff)
downloadxine-lib-d84f253422522de188a6c0c86897939f7f41651a.tar.gz
xine-lib-d84f253422522de188a6c0c86897939f7f41651a.tar.bz2
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
Diffstat (limited to 'src')
-rw-r--r--src/input/net_buf_ctrl.c7
-rw-r--r--src/input/net_buf_ctrl.h4
2 files changed, 11 insertions, 0 deletions
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