mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
player: reset AO stats on pause and other discontinuities
It's annoying.
This commit is contained in:
@@ -415,8 +415,10 @@ static void dump_audio_stats(struct MPContext *mpctx)
|
||||
{
|
||||
if (!mp_msg_test(mpctx->log, MSGL_STATS))
|
||||
return;
|
||||
if (mpctx->audio_status != STATUS_PLAYING || !mpctx->ao)
|
||||
if (mpctx->audio_status != STATUS_PLAYING || !mpctx->ao || mpctx->paused) {
|
||||
mpctx->audio_stat_start = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
double delay = ao_get_delay(mpctx->ao);
|
||||
if (!mpctx->audio_stat_start) {
|
||||
|
||||
Reference in New Issue
Block a user