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