From cb1ee41cec388ca1485a8530970c0a99c787cdb8 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 20 Jul 2013 02:16:54 +0200 Subject: cache: fix time check for printing warning This actually waited 2 seconds, because CACHE_WAIT_TIME happened to be 0.5. --- stream/cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stream') 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, -- cgit v1.2.3