diff options
author | sfan5 <sfan5@live.de> | 2021-04-29 17:12:44 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2021-04-29 17:14:51 +0200 |
commit | 96b68358e343240eda568b4a8aec2d0bc4212518 (patch) | |
tree | 68d47e8a0c0bc94ac682b20d5e94d3bd9db611fa | |
parent | aa300f8023d5b47816d3626b59547e800f46cf79 (diff) | |
download | mpv-96b68358e343240eda568b4a8aec2d0bc4212518.tar.bz2 mpv-96b68358e343240eda568b4a8aec2d0bc4212518.tar.xz |
audio: add two minor log messages
This would have made the problem fixed in the previous
commit a bit more obvious from the log output.
-rw-r--r-- | player/audio.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/player/audio.c b/player/audio.c index 86fd233a6a..aa7647428c 100644 --- a/player/audio.c +++ b/player/audio.c @@ -823,8 +823,10 @@ void audio_start_ao(struct MPContext *mpctx) MP_VERBOSE(mpctx, "starting audio playback\n"); ao_start(ao_c->ao); mpctx->audio_status = STATUS_PLAYING; - if (ao_c->out_eof) + if (ao_c->out_eof) { mpctx->audio_status = STATUS_DRAINING; + MP_VERBOSE(mpctx, "audio draining\n"); + } ao_c->underrun = false; mpctx->logged_async_diff = -1; mp_wakeup_core(mpctx); @@ -873,8 +875,10 @@ void fill_audio_out_buffers(struct MPContext *mpctx) // until the old audio is fully played. // (Buggy if AO underruns.) if (mpctx->ao && ao_is_playing(mpctx->ao) && - mpctx->video_status != STATUS_EOF) + mpctx->video_status != STATUS_EOF) { + MP_VERBOSE(mpctx, "blocked, waiting for old audio to play\n"); ok = false; + } if (ao_c->start_pts_known != ok || ao_c->start_pts != pts) { ao_c->start_pts_known = ok; |