diff options
Diffstat (limited to 'video/vdpau_mixer.c')
-rw-r--r-- | video/vdpau_mixer.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/video/vdpau_mixer.c b/video/vdpau_mixer.c index d6f93a9d13..b1aed70e78 100644 --- a/video/vdpau_mixer.c +++ b/video/vdpau_mixer.c @@ -67,9 +67,6 @@ struct mp_vdpau_mixer *mp_vdpau_mixer_create(struct mp_vdpau_ctx *vdp_ctx, .ctx = vdp_ctx, .log = log, .video_mixer = VDP_INVALID_HANDLE, - .video_eq = { - .capabilities = MP_CSP_EQ_CAPS_COLORMATRIX, - }, }; mp_vdpau_handle_preemption(mixer->ctx, &mixer->preemption_counter); return mixer; @@ -201,7 +198,8 @@ static int create_vdp_mixer(struct mp_vdpau_mixer *mixer, struct mp_csp_params cparams = MP_CSP_PARAMS_DEFAULTS; mp_csp_set_image_params(&cparams, &mixer->image_params); - mp_csp_copy_equalizer_values(&cparams, &mixer->video_eq); + if (mixer->video_eq) + mp_csp_equalizer_state_get(mixer->video_eq, &cparams); mp_get_csp_matrix(&cparams, &yuv2rgb); for (int r = 0; r < 3; r++) { @@ -268,6 +266,9 @@ int mp_vdpau_mixer_render(struct mp_vdpau_mixer *mixer, if (mixer->video_mixer == VDP_INVALID_HANDLE) mixer->initialized = false; + if (mixer->video_eq && mp_csp_equalizer_state_changed(mixer->video_eq)) + mixer->initialized = false; + VdpChromaType s_chroma_type; uint32_t s_w, s_h; |