mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
player/video: update dynamic hdr params
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user