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

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
317317 av_assert0(0);
318318 };
319319
320+static int update_settings(AVFilterContext *ctx);
321+
320322 static int parse_shader(AVFilterContext *avctx, const void *shader, size_t len)
321323 {
322324 LibplaceboContext *s = avctx->priv;
@@ -329,7 +331,7 @@ static int parse_shader(AVFilterContext *avctx, const void *shader, size_t len) · 6 unmodified lines
329331 }
330332
331333 s->hooks[s->num_hooks++] = hook;
332− return 0;
334+ return update_settings(avctx);
333335 }
334336
335337 static 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