From 4d01a66401468121037444401a5e598168e3f708 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Fri, 29 Aug 2025 20:04:00 +0100 Subject: Read an initial chunk on initialising a stream --- stream.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'stream.c') diff --git a/stream.c b/stream.c index 1823279..675692e 100644 --- a/stream.c +++ b/stream.c @@ -42,6 +42,8 @@ stream_err_t stream_init_file(stream_t *stream, char *name, FILE *pipe) stream->pipe.file = pipe; vec_init(&stream->pipe.cache, STREAM_DEFAULT_CHUNK); + // try to read an initial chunk + stream_chunk(stream); return STREAM_ERR_OK; } -- cgit v1.2.3-13-gbd6f