summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--stream/stream.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/stream/stream.c b/stream/stream.c
index c498eb3624..7fc7ca2315 100644
--- a/stream/stream.c
+++ b/stream/stream.c
@@ -254,6 +254,9 @@ int stream_fill_buffer(stream_t *s){
len=s->streaming_ctrl->streaming_read(s->fd,s->buffer,STREAM_BUFFER_SIZE, s->streaming_ctrl);
} else
#endif
+ if (s->fill_buffer)
+ len = s->fill_buffer(s, s->buffer, STREAM_BUFFER_SIZE);
+ else
len=read(s->fd,s->buffer,STREAM_BUFFER_SIZE);
break;
case STREAMTYPE_DS: