From 3048817c0b26e32bd207fde2a560b54f4f5a9a4e Mon Sep 17 00:00:00 2001 From: chme Date: Sun, 9 Jul 2017 11:15:02 +0200 Subject: [PATCH] [player] Add warning log message if overrun is detected but player is still able to catch up --- src/player.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/player.c b/src/player.c index e8f3d158..78fddaf0 100644 --- a/src/player.c +++ b/src/player.c @@ -1097,7 +1097,12 @@ playback_cb(int fd, short what, void *arg) return; } else - pb_write_recovery = 0; + { + if (overrun > 0) + DPRINTF(E_WARN, L_PLAYER, "Output delay detected: player is %" PRIu64 " ticks behind, catching up\n", overrun); + + pb_write_recovery = 0; + } // If there was an overrun, we will try to read/write a corresponding number // of times so we catch up. The read from the input is non-blocking, so it