From 9c974b2a1b65317d27cde792aef6cb7bf55fcbc9 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 14 Jan 2015 22:15:51 +0100 Subject: audio/filter: actually set fmt_in/fmt_out fields --- audio/filter/af.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'audio/filter') 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 -- cgit v1.2.3