mirror of https://github.com/mpv-player/mpv
stream: don't sleep for reconnecting network if playback is stopped
Also silences the bogus message if that happens. CC: @mpv-player/stable
This commit is contained in:
parent
64e3b07a9d
commit
c37956b364
|
@ -388,6 +388,8 @@ static int stream_reconnect(stream_t *s)
|
||||||
return 0;
|
return 0;
|
||||||
if (!s->seekable)
|
if (!s->seekable)
|
||||||
return 0;
|
return 0;
|
||||||
|
if (stream_check_interrupt(s))
|
||||||
|
return 0;
|
||||||
int64_t pos = s->pos;
|
int64_t pos = s->pos;
|
||||||
int sleep_ms = 5;
|
int sleep_ms = 5;
|
||||||
for (int retry = 0; retry < MAX_RECONNECT_RETRIES; retry++) {
|
for (int retry = 0; retry < MAX_RECONNECT_RETRIES; retry++) {
|
||||||
|
|
Loading…
Reference in New Issue