diff mplayer.c @ 32731:005b026b1231

Convert cache_fill_status into a function so we always get the latest state, not whatever it was after the last read.
author reimar
date Wed, 26 Jan 2011 21:48:15 +0000
parents 736b22f11e00
children 67e0128e2f1a
line wrap: on
line diff
--- a/mplayer.c	Wed Jan 26 21:24:49 2011 +0000
+++ b/mplayer.c	Wed Jan 26 21:48:15 2011 +0000
@@ -1280,7 +1280,7 @@
 #ifdef CONFIG_STREAM_CACHE
   // cache stats
   if (stream_cache_size > 0)
-    saddf(line, &pos, width, "%d%% ", cache_fill_status);
+    saddf(line, &pos, width, "%d%% ", cache_fill_status(mpctx->stream));
 #endif
 
   // other