player/video: update dynamic hdr params

This commit is contained in:
Kacper Michajłow
2024-10-12 03:58:20 +02:00
parent a0d416e94b
commit 5730c631fd
6 changed files with 28 additions and 2 deletions

View File

@@ -1192,6 +1192,11 @@ void write_video(struct MPContext *mpctx)
goto error;
}
mp_notify(mpctx, MPV_EVENT_VIDEO_RECONFIG, NULL);
} else {
// Update parameters that don't require reconfiguring the VO.
mp_mutex_lock(&vo->params_mutex);
mp_image_params_update_dynamic(vo->params, p, vo->has_peak_detect_values);
mp_mutex_unlock(&vo->params_mutex);
}
mpctx->time_frame -= get_relative_time(mpctx);