From 92dc567ed99ca08b920a1e4a5504adc48d92614b Mon Sep 17 00:00:00 2001 From: mplayer-svn Date: Tue, 9 Aug 2011 17:36:49 +0000 Subject: cache2: make warnings easier to understand Mark two warnings that usually only indicate a performance issue as such. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33955 b3059339-0415-0410-9bf9-f77b7e298cf2 Another attempt to make message easier to understand. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33956 b3059339-0415-0410-9bf9-f77b7e298cf2 Author: reimar --- stream/cache2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stream/cache2.c b/stream/cache2.c index 4fb663aca6..8b88dbcacb 100644 --- a/stream/cache2.c +++ b/stream/cache2.c @@ -116,7 +116,7 @@ static int cache_read(cache_vars_t *s, unsigned char *buf, int size) if(s->eof) break; if (s->max_filepos == last_max) { if (sleep_count++ == 10) - mp_msg(MSGT_CACHE, MSGL_WARN, "Cache not filling, consider increasing -cache and/or -cache-min!\n"); + mp_msg(MSGT_CACHE, MSGL_WARN, "Cache empty, consider increasing -cache and/or -cache-min. [performance issue]\n"); } else { last_max = s->max_filepos; sleep_count = 0; @@ -603,7 +603,7 @@ int cache_do_control(stream_t *stream, int cmd, void *arg) { cache_wakeup(stream); while (s->control != -1) { if (sleep_count++ == 1000) - mp_msg(MSGT_CACHE, MSGL_WARN, "Cache not responding!\n"); + mp_msg(MSGT_CACHE, MSGL_WARN, "Cache not responding! [performance issue]\n"); if (stream_check_interrupt(CONTROL_SLEEP_TIME)) { s->eof = 1; return STREAM_UNSUPPORTED; -- cgit v1.2.3