af: fix behavior with pathologic filter chains

Some filter chains require a huge number of auto-inserted conversion
filters. There is an overly stupid safeguard against infinite filter
insertions, which counts the number of conversion filters inserted. This
triggered accidentally in this case. Fix by resetting this counter after
a non-conversion filter was successfully configured.
This commit is contained in:
wm4 2015-07-07 13:24:11 +02:00
parent daf32e2d2d
commit 459124f66f
1 changed files with 2 additions and 0 deletions

View File

@ -519,6 +519,8 @@ static int af_reinit(struct af_stream *s)
af->info->name, rv);
goto error;
}
if (af && !af->auto_inserted)
retry = 0;
}
/* Set previously unset fields in s->output to those of the filter chain