Browse code

lavfi/drawtext: fix reinit command

Problem was that reinit argument wasn't used.
Regression came in at commit fd6228e65711e63a9e35e9a1087d7ce62040e6e3

Signed-off-by: Stefano Sabatini <stefasab@gmail.com>

Andrey Utkin authored on 2014/02/01 22:47:25
Showing 1 changed files
... ...
@@ -640,6 +640,8 @@ static int command(AVFilterContext *ctx, const char *cmd, const char *arg, char
640 640
         int ret;
641 641
         uninit(ctx);
642 642
         s->reinit = 1;
643
+        if ((ret = av_set_options_string(ctx, arg, "=", ":")) < 0)
644
+            return ret;
643 645
         if ((ret = init(ctx)) < 0)
644 646
             return ret;
645 647
         return config_input(ctx->inputs[0]);