aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-09-04 20:47:17 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-09-04 20:58:13 +0200
commitb881a2e254f3948a2ff1775a7e2ae58abdef96b6 (patch)
treef596459db197ce2563be88b1d73097e75f04128d
parent09c5f990bc7629dfbee8c760fd485936c60a7b40 (diff)
downloadffmpeg-b881a2e254f3948a2ff1775a7e2ae58abdef96b6.tar.gz
vf_drawtext: Fix reinit to allow color changes.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavfilter/vf_drawtext.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c
index d95e71285b..a2a772404d 100644
--- a/libavfilter/vf_drawtext.c
+++ b/libavfilter/vf_drawtext.c
@@ -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)
{
if(!strcmp(cmd, "reinit")){
+ int ret;
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);