summaryrefslogtreecommitdiffstats
path: root/player/audio.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-02-01 22:14:32 +0100
committerwm4 <wm4@nowhere>2016-02-01 22:14:32 +0100
commit5c8378b71aaa4fbfda69ed9f50fe10f40cd124f2 (patch)
tree910c0840b089edbbae8a3cc1c6da60d4e06cb904 /player/audio.c
parentab318aeea84f51fa0adcfb09a8a43abc67dae1cd (diff)
downloadmpv-5c8378b71aaa4fbfda69ed9f50fe10f40cd124f2.tar.bz2
mpv-5c8378b71aaa4fbfda69ed9f50fe10f40cd124f2.tar.xz
player: use different variable to indicate coverart
Slightly better.
Diffstat (limited to 'player/audio.c')
-rw-r--r--player/audio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/player/audio.c b/player/audio.c
index b2581aa2fc..1a67cdca63 100644
--- a/player/audio.c
+++ b/player/audio.c
@@ -525,7 +525,7 @@ static bool get_sync_samples(struct MPContext *mpctx, int *skip)
!mp_audio_buffer_samples(mpctx->ao_chain->ao_buffer))
return false; // no audio read yet
- bool sync_to_video = mpctx->vo_chain && mpctx->sync_audio_to_video &&
+ bool sync_to_video = mpctx->vo_chain && !mpctx->vo_chain->is_coverart &&
mpctx->video_status != STATUS_EOF;
double sync_pts = MP_NOPTS_VALUE;
@@ -815,8 +815,8 @@ void fill_audio_out_buffers(struct MPContext *mpctx, double endpts)
// 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_FILLING && mpctx->sync_audio_to_video &&
- mpctx->video_status <= STATUS_READY)
+ if (mpctx->audio_status == STATUS_FILLING && mpctx->vo_chain &&
+ !mpctx->vo_chain->is_coverart && mpctx->video_status <= STATUS_READY)
{
mpctx->audio_status = STATUS_READY;
return;