summaryrefslogtreecommitdiffstats
path: root/stream/stream.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-06-21 20:16:52 +0200
committerwm4 <wm4@nowhere>2013-06-25 00:11:55 +0200
commit3993f551df715447223ee77cd79e8504d89e7862 (patch)
treeda2d9e96f4ff2c028f38b54760214a3869e742c8 /stream/stream.h
parent4d33197547ec0334eb64d02b65b907b6a6dd107f (diff)
downloadmpv-3993f551df715447223ee77cd79e8504d89e7862.tar.bz2
mpv-3993f551df715447223ee77cd79e8504d89e7862.tar.xz
stream: never let read functions return values < 0
stream_read_unbuffered() can sometimes return negative values on error. Change that to return 0 - the negative values are nowhere used anyway. If distinguishing errors and EOF is really needed, a flag could be added instead. This also fixes the stream_read_partial() call in cache.c, which assumes the return values is always >= 0.
Diffstat (limited to 'stream/stream.h')
0 files changed, 0 insertions, 0 deletions