video: also reset video-sync state when resetting video state

Fixes #13790
This commit is contained in:
llyyr 2024-03-30 05:45:23 +05:30 committed by sfan5
parent 92cb47338f
commit cb82ad73f2
1 changed files with 1 additions and 0 deletions

View File

@ -120,6 +120,7 @@ void reset_video_state(struct MPContext *mpctx)
mpctx->drop_message_shown = 0;
mpctx->display_sync_drift_dir = 0;
mpctx->display_sync_error = 0;
mpctx->display_sync_active = 0;
mpctx->video_status = mpctx->vo_chain ? STATUS_SYNCING : STATUS_EOF;
}