History

lavfi/vf_libplacebo: update settings after adding hooks

Failure to do so led to the update s->hooks never getting correctly propagated to the render params.

Niklas Haas committed 3 years ago

Commit ee134141 parent 4e521e61 file · +3 −1Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_libplacebo.c+3−1
@@ -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
320static int update_settings(AVFilterContext *ctx);
321
320static int parse_shader(AVFilterContext *avctx, const void *shader, size_t len)322static 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
335static int find_scaler(AVFilterContext *avctx,337static int find_scaler(AVFilterContext *avctx,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t