mirror of
https://github.com/mpv-player/mpv
synced 2024-12-30 02:52:10 +00: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:
parent
93e206e062
commit
2e2f77e346
@ -287,6 +287,8 @@ int stream_read_internal(stream_t *s, void *buf, int len)
|
|||||||
#ifdef CONFIG_NETWORKING
|
#ifdef CONFIG_NETWORKING
|
||||||
if( s->streaming_ctrl!=NULL && s->streaming_ctrl->streaming_read ) {
|
if( s->streaming_ctrl!=NULL && s->streaming_ctrl->streaming_read ) {
|
||||||
len=s->streaming_ctrl->streaming_read(s->fd, buf, len, s->streaming_ctrl);
|
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
|
} else
|
||||||
#endif
|
#endif
|
||||||
if (s->fill_buffer)
|
if (s->fill_buffer)
|
||||||
|
Loading…
Reference in New Issue
Block a user