diff options
author | wm4 <wm4@nowhere> | 2013-07-20 02:16:54 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-07-20 02:16:54 +0200 |
commit | cb1ee41cec388ca1485a8530970c0a99c787cdb8 (patch) | |
tree | 23ab0874d37c22358b0b33d66765e113b60e60bb /stream | |
parent | 67bad55414fb99320e1f392e091d18878edecd65 (diff) | |
download | mpv-cb1ee41cec388ca1485a8530970c0a99c787cdb8.tar.bz2 mpv-cb1ee41cec388ca1485a8530970c0a99c787cdb8.tar.xz |
cache: fix time check for printing warning
This actually waited 2 seconds, because CACHE_WAIT_TIME happened to
be 0.5.
Diffstat (limited to 'stream')
-rw-r--r-- | stream/cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/cache.c b/stream/cache.c index 364ef68891..a60b8dd9ef 100644 --- a/stream/cache.c +++ b/stream/cache.c @@ -163,7 +163,7 @@ static int cache_wakeup_and_wait(struct priv *s, double *retry_time) return CACHE_INTERRUPTED; // Print a "more severe" warning after waiting 1 second and no new data - if ((*retry_time) * CACHE_WAIT_TIME >= 1.0) { + if ((*retry_time) >= 1.0) { mp_msg(MSGT_CACHE, MSGL_ERR, "Cache keeps not responding.\n"); } else if (*retry_time > 0.1) { mp_msg(MSGT_CACHE, MSGL_WARN, |