mirror of
https://github.com/mpv-player/mpv
synced 2025-03-22 03:08:33 +00:00
player: reset AO stats on pause and other discontinuities
It's annoying.
This commit is contained in:
parent
d1ad0815fe
commit
ce82d88215
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user