diff options
author | wm4 <wm4@nowhere> | 2014-07-12 19:17:36 +0200 |
---|---|---|
committer | Alessandro Ghedini <alessandro@ghedini.me> | 2014-07-13 15:06:52 +0200 |
commit | 0ab7d014259c02492ef2dcfeb3fe43c749ac632b (patch) | |
tree | 5520e9907800a5fd091cf420a9744c6ac6df2a36 /stream | |
parent | bd0b661183d2a57ab13cacaa2aac31c645444d61 (diff) | |
download | mpv-0ab7d014259c02492ef2dcfeb3fe43c749ac632b.tar.bz2 mpv-0ab7d014259c02492ef2dcfeb3fe43c749ac632b.tar.xz |
stream: don't sleep for reconnecting network if playback is stopped
Also silences the bogus message if that happens.
CC: @mpv-player/stable
Diffstat (limited to 'stream')
-rw-r--r-- | stream/stream.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/stream/stream.c b/stream/stream.c index 6e903bc8ec..69e2faf16b 100644 --- a/stream/stream.c +++ b/stream/stream.c @@ -388,6 +388,8 @@ static int stream_reconnect(stream_t *s) return 0; if (!s->seekable) return 0; + if (stream_check_interrupt(s)) + return 0; int64_t pos = s->pos; int sleep_ms = 5; for (int retry = 0; retry < MAX_RECONNECT_RETRIES; retry++) { |