Commit b881a2e2 authored by Michael Niedermayer's avatar Michael Niedermayer

vf_drawtext: Fix reinit to allow color changes.

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 09c5f990
...@@ -408,8 +408,11 @@ static int config_input(AVFilterLink *inlink) ...@@ -408,8 +408,11 @@ static int config_input(AVFilterLink *inlink)
static int command(AVFilterContext *ctx, const char *cmd, const char *arg, char *res, int res_len, int flags) static int command(AVFilterContext *ctx, const char *cmd, const char *arg, char *res, int res_len, int flags)
{ {
if(!strcmp(cmd, "reinit")){ if(!strcmp(cmd, "reinit")){
int ret;
uninit(ctx); uninit(ctx);
return init(ctx, arg, NULL); if((ret=init(ctx, arg, NULL)) < 0)
return ret;
return config_input(ctx->inputs[0]);
} }
return AVERROR(ENOSYS); return AVERROR(ENOSYS);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment