summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAman Gupta <aman@tmm1.net>2018-05-02 12:34:43 -0700
committerJan Ekström <jeebjp@gmail.com>2018-05-03 19:47:58 +0300
commit98b8e60b14921cf94eadb0adea5e9d7461091e96 (patch)
tree977cb43ec23ee00a6014f6db7700efba09275723
parent7d8eee36a52fe39475b63204e74d25cbd538ea56 (diff)
downloadmpv-98b8e60b14921cf94eadb0adea5e9d7461091e96.tar.bz2
mpv-98b8e60b14921cf94eadb0adea5e9d7461091e96.tar.xz
player: add more logging around buffering state
-rw-r--r--player/playloop.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/player/playloop.c b/player/playloop.c
index a7771b8be3..8845b58cef 100644
--- a/player/playloop.c
+++ b/player/playloop.c
@@ -674,11 +674,16 @@ static void handle_pause_on_low_cache(struct MPContext *mpctx)
if (mpctx->cache_buffer != cache_buffer) {
if ((mpctx->cache_buffer == 100) != (cache_buffer == 100)) {
if (cache_buffer < 100) {
- MP_VERBOSE(mpctx, "Enter buffering.\n");
+ MP_VERBOSE(mpctx, "Enter buffering (buffer went from %d%% -> %d%%) [%fs].\n",
+ mpctx->cache_buffer, cache_buffer, s.ts_duration);
} else {
double t = now - mpctx->cache_stop_time;
- MP_VERBOSE(mpctx, "End buffering (waited %f secs).\n", t);
+ MP_VERBOSE(mpctx, "End buffering (waited %f secs) [%fs].\n",
+ t, s.ts_duration);
}
+ } else {
+ MP_VERBOSE(mpctx, "Still buffering (buffer went from %d%% -> %d%%) [%fs].\n",
+ mpctx->cache_buffer, cache_buffer, s.ts_duration);
}
mpctx->cache_buffer = cache_buffer;
force_update = true;