From 7591403566971eb19ba7bb16002eaa2689a637c7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 16 Nov 2008 20:42:08 +0100 Subject: input_stream: size==-1 means unknown size Define the special value "-1" as "unknown size". Previously, there was no indicator for streams with unknown size, which might confuse some decoders. --- src/input_stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/input_stream.c') diff --git a/src/input_stream.c b/src/input_stream.c index be547912e..65b6a89b2 100644 --- a/src/input_stream.c +++ b/src/input_stream.c @@ -58,7 +58,7 @@ input_stream_open(struct input_stream *is, const char *url) is->seekable = false; is->ready = false; is->offset = 0; - is->size = 0; + is->size = -1; is->error = 0; is->mime = NULL; is->meta_name = NULL; -- cgit v1.2.3