summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
Diffstat (limited to 'audio')
-rw-r--r--audio/filter/af.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/audio/filter/af.c b/audio/filter/af.c
index 0e738bbacc..6e9ede612e 100644
--- a/audio/filter/af.c
+++ b/audio/filter/af.c
@@ -531,6 +531,7 @@ static int af_reinit(struct af_stream *s)
if (!mp_audio_config_valid(&in))
goto error;
+ af->fmt_in = in;
int rv = af->control(af, AF_CONTROL_REINIT, &in);
if (rv == AF_OK && !mp_audio_config_equals(&in, af->prev->data))
rv = AF_FALSE; // conversion filter needed
@@ -538,6 +539,7 @@ static int af_reinit(struct af_stream *s)
case AF_OK:
if (!mp_audio_config_valid(af->data))
goto error;
+ af->fmt_out = *af->data;
af = af->next;
break;
case AF_FALSE: { // Configuration filter is needed