summaryrefslogtreecommitdiffstats
path: root/mpvcore
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-18 14:16:08 +0100
committerwm4 <wm4@nowhere>2013-11-18 14:21:01 +0100
commit5594718b6bda3a230e2e2c3cb06d2837c5a02688 (patch)
treedca02cab9bde6d50d148a62b20ec99aa8601b847 /mpvcore
parent93852b08f37f630b994d126751b4b9740a13219f (diff)
downloadmpv-5594718b6bda3a230e2e2c3cb06d2837c5a02688.tar.bz2
mpv-5594718b6bda3a230e2e2c3cb06d2837c5a02688.tar.xz
audio/filter: remove unneeded AF_CONTROLs, convert to enum
The AF control commands used an elaborate and unnecessary organization for the command constants. Get rid of all that and convert the definitions to a simple enum. Also remove the control commands that were not really needed, because they were not used outside of the filters that implemented them.
Diffstat (limited to 'mpvcore')
-rw-r--r--mpvcore/player/audio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mpvcore/player/audio.c b/mpvcore/player/audio.c
index 97c446942f..3bf338c21d 100644
--- a/mpvcore/player/audio.c
+++ b/mpvcore/player/audio.c
@@ -52,8 +52,7 @@ static int build_afilter_chain(struct MPContext *mpctx)
mp_audio_buffer_get_format(mpctx->sh_audio->decode_buffer, &in_format);
int new_srate;
- if (af_control_any_rev(sh_audio->afilter,
- AF_CONTROL_PLAYBACK_SPEED | AF_CONTROL_SET,
+ if (af_control_any_rev(sh_audio->afilter, AF_CONTROL_SET_PLAYBACK_SPEED,
&opts->playback_speed))
new_srate = in_format.rate;
else {