[FFmpeg-cvslog] vf_drawtext: Fix reinit to allow color changes.

Michael Niedermayer git at videolan.org
Sun Sep 4 20:58:55 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Sep  4 20:47:17 2011 +0200| [b881a2e254f3948a2ff1775a7e2ae58abdef96b6] | committer: Michael Niedermayer

vf_drawtext: Fix reinit to allow color changes.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b881a2e254f3948a2ff1775a7e2ae58abdef96b6
---

 libavfilter/vf_drawtext.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c
index d95e712..a2a7724 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);



More information about the ffmpeg-cvslog mailing list