mirror of
https://github.com/mpv-player/mpv
synced 2025-03-23 03:37:27 +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))
|
if (!mp_msg_test(mpctx->log, MSGL_STATS))
|
||||||
return;
|
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;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
double delay = ao_get_delay(mpctx->ao);
|
double delay = ao_get_delay(mpctx->ao);
|
||||||
if (!mpctx->audio_stat_start) {
|
if (!mpctx->audio_stat_start) {
|
||||||
|
Loading…
Reference in New Issue
Block a user