From 459124f66f7df6dc109c8399ee3d78424c288321 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 7 Jul 2015 13:24:11 +0200 Subject: 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. --- audio/filter/af.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'audio') diff --git a/audio/filter/af.c b/audio/filter/af.c index f37a47697e..bccdcefde0 100644 --- a/audio/filter/af.c +++ b/audio/filter/af.c @@ -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 -- cgit v1.2.3