diff options
author | wm4 <wm4@nowhere> | 2013-06-06 20:39:58 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-06-16 22:05:09 +0200 |
commit | 1c35794efd7d025457e527b61f7c23fe375c2f5a (patch) | |
tree | f9c38b117b3b3e05ee8db67310762b42c4de17ab /demux/demux_lavf.c | |
parent | 7fefad7a8f2e45fcab60b400a63c43097ad6c681 (diff) | |
download | mpv-1c35794efd7d025457e527b61f7c23fe375c2f5a.tar.bz2 mpv-1c35794efd7d025457e527b61f7c23fe375c2f5a.tar.xz |
stream: remove stream_reset()
This function was called in various places. Most time, it was used
before a seek. In other cases, the purpose was apparently resetting
the EOF flag. As far as I can see, this makes no sense anymore. At
least the stream_reset() calls paired with stream_seek() are completely
pointless. A seek will either seek inside the buffer (and reset the
EOF flag), or do an actual seek and reset all state.
Diffstat (limited to 'demux/demux_lavf.c')
-rw-r--r-- | demux/demux_lavf.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c index efe8edd43c..53f583570f 100644 --- a/demux/demux_lavf.c +++ b/demux/demux_lavf.c @@ -143,7 +143,6 @@ static int64_t mp_seek(void *opaque, int64_t pos, int whence) return -1; current_pos = stream_tell(stream); if (stream_seek(stream, pos) == 0) { - stream_reset(stream); stream_seek(stream, current_pos); return -1; } |