summaryrefslogtreecommitdiffstats
path: root/stream/stream.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-14 00:51:00 +0100
committerwm4 <wm4@nowhere>2013-12-14 00:51:00 +0100
commit600bccdf2aafba49f3aa19c774c3cdc025e93368 (patch)
tree9050b33bba108b00fb59cc6620282abe2245881b /stream/stream.h
parentdd6d204e9e6b1c64280f486eb7536b70e600349b (diff)
downloadmpv-600bccdf2aafba49f3aa19c774c3cdc025e93368.tar.bz2
mpv-600bccdf2aafba49f3aa19c774c3cdc025e93368.tar.xz
stream: add function for dropping the buffer
And use it in demux_lavf.c. It looks like otherwise, some data might be left over, depending on how the hell av_seek_frame() behaves.
Diffstat (limited to 'stream/stream.h')
-rw-r--r--stream/stream.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/stream/stream.h b/stream/stream.h
index 6182d6414d..a3592a692d 100644
--- a/stream/stream.h
+++ b/stream/stream.h
@@ -239,6 +239,7 @@ 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);
+void stream_drop_buffers(stream_t *s);
struct MPOpts;