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_asf.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_asf.c')
-rw-r--r-- | demux/demux_asf.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/demux/demux_asf.c b/demux/demux_asf.c index 0b8da6930f..f800e09dc3 100644 --- a/demux/demux_asf.c +++ b/demux/demux_asf.c @@ -628,7 +628,6 @@ static demuxer_t* demux_open_asf(demuxer_t* demuxer) init_priv(asf); if (!read_asf_header(demuxer,asf)) return NULL; - stream_reset(demuxer->stream); stream_seek(demuxer->stream,demuxer->movi_start); // demuxer->idx_pos=0; // demuxer->endpos=avi_header.movi_end; |