Skip to content

Commit

Permalink
vo_gpu_next: correctly clear removed hooks
Browse files Browse the repository at this point in the history
Before d208284, this was implicitly reset back to 0 at the start of
every update_options(). But we no longer explicitly reset par->params,
so we need to do it manually here for the hooks.

Fixes: mpv-player#12203
  • Loading branch information
haasn committed Aug 19, 2023
1 parent 725b631 commit 2791eb6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions video/out/vo_gpu_next.c
Original file line number Diff line number Diff line change
Expand Up @@ -2034,6 +2034,7 @@ static void update_render_options(struct vo *vo)

update_icc_opts(p, opts->icc_opts);

pars->params.num_hooks = 0;
const struct pl_hook *hook;
for (int i = 0; opts->user_shaders && opts->user_shaders[i]; i++) {
if ((hook = load_hook(p, opts->user_shaders[i]))) {
Expand Down

0 comments on commit 2791eb6

Please sign in to comment.