summaryrefslogtreecommitdiffstats
path: root/audio/filter
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-14 22:15:51 +0100
committerwm4 <wm4@nowhere>2015-01-14 22:15:51 +0100
commit9c974b2a1b65317d27cde792aef6cb7bf55fcbc9 (patch)
tree0b91ba17b8a681d70795a23c516ba045353e0d5f /audio/filter
parentf6a0a1554c0d51c03fa625c97b5a75b8224cb09b (diff)
downloadmpv-9c974b2a1b65317d27cde792aef6cb7bf55fcbc9.tar.bz2
mpv-9c974b2a1b65317d27cde792aef6cb7bf55fcbc9.tar.xz
audio/filter: actually set fmt_in/fmt_out fields
Diffstat (limited to 'audio/filter')
-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