player/video.c: don't resync audio if video is an image

This commit is contained in:
StratusFearMe21 2023-01-30 00:03:11 -05:00 committed by Dudemanguy
parent 4bcefa5be3
commit 3038e578af
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ void reinit_video_chain_src(struct MPContext *mpctx, struct track *track)
vo_set_paused(vo_c->vo, get_internal_paused(mpctx));
// If we switch on video again, ensure audio position matches up.
if (mpctx->ao_chain && mpctx->ao_chain->ao) {
if (mpctx->ao_chain && mpctx->ao_chain->ao && !(track && track->image)) {
ao_reset(mpctx->ao_chain->ao);
mpctx->ao_chain->start_pts_known = false;
mpctx->audio_status = STATUS_SYNCING;