1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-10 06:10:52 +02:00

vf_drawtext: Fix reinit to allow color changes.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer
2011-09-04 20:47:17 +02:00
parent 09c5f990bc
commit b881a2e254

View File

@@ -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);