mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
player/video.c: don't resync audio if video is an image
This commit is contained in:
committed by
Dudemanguy
parent
4bcefa5be3
commit
3038e578af
@@ -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));
|
vo_set_paused(vo_c->vo, get_internal_paused(mpctx));
|
||||||
|
|
||||||
// If we switch on video again, ensure audio position matches up.
|
// 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);
|
ao_reset(mpctx->ao_chain->ao);
|
||||||
mpctx->ao_chain->start_pts_known = false;
|
mpctx->ao_chain->start_pts_known = false;
|
||||||
mpctx->audio_status = STATUS_SYNCING;
|
mpctx->audio_status = STATUS_SYNCING;
|
||||||
|
|||||||
Reference in New Issue
Block a user