summaryrefslogtreecommitdiff
path: root/src/xine-engine/input_cache.c
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2007-11-23 19:32:35 +0000
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2007-11-23 19:32:35 +0000
commit740cb399dcf72420ac0c8a6048dca8fac09daf3d (patch)
tree92b18c4be7212b84b99ecb94e1d81be8027a03f8 /src/xine-engine/input_cache.c
parentff8930972b4242d31e540a38f1d8053e846d68e6 (diff)
parentc1f730ab426636b5fea1dc657d2278950ace5de6 (diff)
downloadxine-lib-740cb399dcf72420ac0c8a6048dca8fac09daf3d.tar.gz
xine-lib-740cb399dcf72420ac0c8a6048dca8fac09daf3d.tar.bz2
Merge.
Diffstat (limited to 'src/xine-engine/input_cache.c')
-rw-r--r--src/xine-engine/input_cache.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xine-engine/input_cache.c b/src/xine-engine/input_cache.c
index 2baa67c7c..30b1ba4aa 100644
--- a/src/xine-engine/input_cache.c
+++ b/src/xine-engine/input_cache.c
@@ -34,6 +34,7 @@
*/
#include "xine_internal.h"
+#include <assert.h>
#define DEFAULT_BUFFER_SIZE 1024
@@ -190,6 +191,7 @@ static buf_element_t *cache_plugin_read_block(input_plugin_t *this_gen, fifo_buf
if (buf) {
buf->type = BUF_DEMUX_BLOCK;
+ assert(todo <= buf->max_size);
read_len = cache_plugin_read (this_gen, buf->content, todo);
buf->size = read_len;
}