Failure to do so led to the update s->hooks never getting correctly propagated to the render params.
Unified · Split
| @@ -317,6 +317,8 @@ static void set_gamut_mode(struct pl_color_map_params *p, int gamut_mode) · 316 unmodified lines | ||
| 317 | 317 | av_assert0(0); |
| 318 | 318 | }; |
| 319 | 319 | |
| 320 | +static int update_settings(AVFilterContext *ctx); | |
| 321 | + | |
| 320 | 322 | static int parse_shader(AVFilterContext *avctx, const void *shader, size_t len) |
| 321 | 323 | { |
| 322 | 324 | LibplaceboContext *s = avctx->priv; |
| @@ -329,7 +331,7 @@ static int parse_shader(AVFilterContext *avctx, const void *shader, size_t len) · 6 unmodified lines | ||
| 329 | 331 | } |
| 330 | 332 | |
| 331 | 333 | s->hooks[s->num_hooks++] = hook; |
| 332 | − return 0; | |
| 334 | + return update_settings(avctx); | |
| 333 | 335 | } |
| 334 | 336 | |
| 335 | 337 | static int find_scaler(AVFilterContext *avctx, |