0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

cache: fix time check for printing warning

This actually waited 2 seconds, because CACHE_WAIT_TIME happened to
be 0.5.
This commit is contained in:
wm4 2013-07-20 02:16:54 +02:00
parent 67bad55414
commit cb1ee41cec

View File

@ -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,