mirror of https://github.com/mpv-player/mpv
stream: reconnecting doesn't make sense if stream is not seekable
This stops mpv from being stuck in reconnecting at the end of the file with some unseekable streams. Test URL: http://playerservices.streamtheworld.com/pls/CBC_R1_VCR_H.pls
This commit is contained in:
parent
891a2a1f47
commit
84f7e213ab
|
@ -387,6 +387,8 @@ static int stream_reconnect(stream_t *s)
|
|||
#define RECONNECT_SLEEP_MS 1000
|
||||
if (!s->streaming)
|
||||
return 0;
|
||||
if (!s->end_pos || !s->seek || !(s->flags & MP_STREAM_SEEK))
|
||||
return 0;
|
||||
int64_t pos = s->pos;
|
||||
for (int retry = 0; retry < MAX_RECONNECT_RETRIES; retry++) {
|
||||
mp_msg(MSGT_STREAM, MSGL_WARN,
|
||||
|
|
Loading…
Reference in New Issue