summaryrefslogtreecommitdiffstats
path: root/player/audio.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-11-17 01:39:54 +0100
committerwm4 <wm4@nowhere>2019-11-17 02:11:45 +0100
commitd92395d205dc9638c354c4bc7e58a969f889ebec (patch)
tree489b40240cf35d4ec5ca40acb2238e1391092cfd /player/audio.c
parent4e74320320ea78904d94d11ffb35ef8f9f2b431e (diff)
downloadmpv-d92395d205dc9638c354c4bc7e58a969f889ebec.tar.bz2
mpv-d92395d205dc9638c354c4bc7e58a969f889ebec.tar.xz
player: remove some unnecessary coverart special cases
These should not be needed, since video is in EOF mode in this case anyway. Not too sure about the video.c case to be honest, well, here goes nothing.
Diffstat (limited to 'player/audio.c')
-rw-r--r--player/audio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/player/audio.c b/player/audio.c
index 529902b535..e8e129dc49 100644
--- a/player/audio.c
+++ b/player/audio.c
@@ -626,8 +626,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->vo_chain->is_coverart &&
- mpctx->video_status != STATUS_EOF;
+ bool sync_to_video = mpctx->vo_chain && mpctx->video_status != STATUS_EOF;
double sync_pts = MP_NOPTS_VALUE;
if (sync_to_video) {