summaryrefslogtreecommitdiffstats
path: root/libmpdemux/stream.h
diff options
context:
space:
mode:
Diffstat (limited to 'libmpdemux/stream.h')
-rw-r--r--libmpdemux/stream.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpdemux/stream.h b/libmpdemux/stream.h
index 184444971b..f6734561cf 100644
--- a/libmpdemux/stream.h
+++ b/libmpdemux/stream.h
@@ -53,6 +53,8 @@ void stream_enable_cache(stream_t *stream,int size,int min,int prefill);
int cache_stream_fill_buffer(stream_t *s);
int cache_stream_seek_long(stream_t *s,off_t pos);
+#include <string.h>
+
inline static int stream_read_char(stream_t *s){
return (s->buf_pos<s->buf_len)?s->buffer[s->buf_pos++]:
(cache_stream_fill_buffer(s)?s->buffer[s->buf_pos++]:-256);