aboutsummaryrefslogtreecommitdiffstats
path: root/src/input_stream.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-16 20:42:08 +0100
committerMax Kellermann <max@duempel.org>2008-11-16 20:42:08 +0100
commit7591403566971eb19ba7bb16002eaa2689a637c7 (patch)
treecc08c5542d7e52b3bb3457b1e62fd209ba125be5 /src/input_stream.c
parent8882f062000ec6f86d932eee7c948d1369901c03 (diff)
downloadmpd-7591403566971eb19ba7bb16002eaa2689a637c7.tar.gz
mpd-7591403566971eb19ba7bb16002eaa2689a637c7.tar.xz
mpd-7591403566971eb19ba7bb16002eaa2689a637c7.zip
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.
Diffstat (limited to 'src/input_stream.c')
-rw-r--r--src/input_stream.c2
1 files changed, 1 insertions, 1 deletions
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;