diff options
author | wm4 <wm4@nowhere> | 2018-01-06 17:19:11 +0100 |
---|---|---|
committer | Kevin Mitchell <kevmitch@gmail.com> | 2018-01-07 05:03:15 -0800 |
commit | 5103b5dc2cfeb6bc980139444e0fd0110f8d4111 (patch) | |
tree | f8fcc2c75cff69e2f46a4f56f313c4fd59768756 /player/audio.c | |
parent | b71c8251b06bab3014de4aa56b50345de4f7f067 (diff) | |
download | mpv-5103b5dc2cfeb6bc980139444e0fd0110f8d4111.tar.bz2 mpv-5103b5dc2cfeb6bc980139444e0fd0110f8d4111.tar.xz |
player: handle audio playback restart in central playback start code
No idea why this wasn't done earlier. This makes playback start in audio
only tracks closer to video-only or video/audio restart. It has the
consequence that --cache-pause-initial now works for audio-only streams
too.
Diffstat (limited to 'player/audio.c')
-rw-r--r-- | player/audio.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/player/audio.c b/player/audio.c index 8422e109f1..598e145147 100644 --- a/player/audio.c +++ b/player/audio.c @@ -1225,10 +1225,8 @@ void fill_audio_out_buffers(struct MPContext *mpctx) // Even if we're done decoding and syncing, let video start first - this is // required, because sending audio to the AO already starts playback. if (mpctx->audio_status == STATUS_READY) { - if (mpctx->vo_chain && !mpctx->vo_chain->is_coverart && - mpctx->video_status <= STATUS_READY) - return; - MP_VERBOSE(mpctx, "starting audio playback\n"); + // Warning: relies on handle_playback_restart() being called afterwards. + return; } bool audio_eof = status == AD_EOF; |