Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
static int command(AVFilterContext *ctx, const char *cmd, const char *arg, char *res, int res_len, int flags)
{
if(!strcmp(cmd, "reinit")){
static int command(AVFilterContext *ctx, const char *cmd, const char *arg, char *res, int res_len, int flags)
{
if(!strcmp(cmd, "reinit")){
- 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);