diff options
author | wm4 <wm4@nowhere> | 2013-06-21 21:06:36 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-06-25 00:11:55 +0200 |
commit | a40ae2de846d6f3e4fd6356c4914678c0588e083 (patch) | |
tree | b5755ac4d684d93ca729ad0fc28d5534fd20cb15 /stream/stream.h | |
parent | 3993f551df715447223ee77cd79e8504d89e7862 (diff) | |
download | mpv-a40ae2de846d6f3e4fd6356c4914678c0588e083.tar.bz2 mpv-a40ae2de846d6f3e4fd6356c4914678c0588e083.tar.xz |
stream: add stream_peek function
Makes probing easier, and this is perhaps a simpler interface than
stream_unread_buffer().
Diffstat (limited to 'stream/stream.h')
-rw-r--r-- | stream/stream.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/stream/stream.h b/stream/stream.h index cee7fdc248..3ebba85199 100644 --- a/stream/stream.h +++ b/stream/stream.h @@ -297,6 +297,7 @@ int stream_skip(stream_t *s, int64_t len); int stream_seek(stream_t *s, int64_t pos); int stream_read(stream_t *s, char *mem, int total); int stream_read_partial(stream_t *s, char *buf, int buf_size); +struct bstr stream_peek(stream_t *s, int len); struct MPOpts; |