]> git.sesse.net Git - ffmpeg/commitdiff
vf_drawtext: Fix reinit to allow color changes.
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 4 Sep 2011 18:47:17 +0000 (20:47 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 4 Sep 2011 18:58:13 +0000 (20:58 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_drawtext.c

index d95e71285b67219acc5e97d9bddb83667aff776a..a2a772404db079807653bc8d73a4dab07e324b3e 100644 (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)
 {
     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);