diff options
author | wm4 <wm4@nowhere> | 2013-06-21 20:16:52 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-06-25 00:11:55 +0200 |
commit | 3993f551df715447223ee77cd79e8504d89e7862 (patch) | |
tree | da2d9e96f4ff2c028f38b54760214a3869e742c8 /stream/url.h | |
parent | 4d33197547ec0334eb64d02b65b907b6a6dd107f (diff) | |
download | mpv-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/url.h')
0 files changed, 0 insertions, 0 deletions