[MPlayer-dev-eng] [PATCH] Fix some seek failure

Alban Bedel albeu at free.fr
Mon Mar 13 19:17:10 CET 2006


Hi,

their is a little bug in stream_seek() which can lead to some strange
seeking failure, in particular with ftp.
Seeks are always aligned on the buffer size, then a single
stream_fill_buffer is made and failure is returned if the wanted
position is not in the buffer. So that obviously can fail if the call to
stream_fill_buffer() doesn't fill the whole buffer (it doesn't have to).
So here is a simple fix to read more data if needed. Any objection ?

	Albeu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stream_seek.diff
Type: application/octet-stream
Size: 674 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20060313/d74a69b0/attachment.obj>


More information about the MPlayer-dev-eng mailing list