mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-07 21:03:00 -05:00
[player] Add warning log message if overrun is detected but player is
still able to catch up
This commit is contained in:
@@ -1097,7 +1097,12 @@ playback_cb(int fd, short what, void *arg)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else
|
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
|
// 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
|
// of times so we catch up. The read from the input is non-blocking, so it
|
||||||
|
|||||||
Reference in New Issue
Block a user