diff options
author | StratusFearMe21 <rooster0055@protonmail.com> | 2023-01-30 00:03:11 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-01-30 14:52:00 +0000 |
commit | 3038e578af5b06129c2dd98cffeede7cdf8db700 (patch) | |
tree | 11d0803d446435f73a847379c85c6b2f5a128a23 /player/video.c | |
parent | 4bcefa5be3b776c68b689b8009759390c2eb62de (diff) | |
download | mpv-3038e578af5b06129c2dd98cffeede7cdf8db700.tar.bz2 mpv-3038e578af5b06129c2dd98cffeede7cdf8db700.tar.xz |
player/video.c: don't resync audio if video is an image
Diffstat (limited to 'player/video.c')
-rw-r--r-- | player/video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/player/video.c b/player/video.c index 63763d22e5..4fb644242c 100644 --- a/player/video.c +++ b/player/video.c @@ -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; |