1
mirror of https://github.com/mpv-player/mpv synced 2024-08-04 14:59:58 +02:00

stream.c: Pass streaming_ctrl eof on to struct stream field

Fixes a possible endless loop with HTTP files where seeking to
the very end returns the full file again instead of e.g. an error.
Apache/2.2.4 seems to show this behaviour.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33808 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2011-07-04 19:14:06 +00:00 committed by Uoti Urpala
parent 93e206e062
commit 2e2f77e346

View File

@ -287,6 +287,8 @@ int stream_read_internal(stream_t *s, void *buf, int len)
#ifdef CONFIG_NETWORKING
if( s->streaming_ctrl!=NULL && s->streaming_ctrl->streaming_read ) {
len=s->streaming_ctrl->streaming_read(s->fd, buf, len, s->streaming_ctrl);
if (s->streaming_ctrl->status == streaming_stopped_e)
s->eof = 1;
} else
#endif
if (s->fill_buffer)