[MPlayer-dev-eng] [PATCH] bad seeking in stream.c, buffer flushed to early

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Wed Sep 8 21:58:33 CEST 2004


Hi,
stream_seek_long first sets s->buf_pos=s->buf_len=0; (thus clearing the 
buffer) before attempting to seek, which effectively makes it seek 
forward instead of backwards on linear streams (e.g. when doing cat test 
| mplayer -nocache -).
Simply commenting this out made it work for me and I couldn't detect any 
ill effects, but somebody who knows this code should check this.

Greetings,
Reimar Döffinger
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: stream_seek.diff
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20040908/4f344dd7/attachment.asc>


More information about the MPlayer-dev-eng mailing list