From 5594718b6bda3a230e2e2c3cb06d2837c5a02688 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 18 Nov 2013 14:16:08 +0100 Subject: 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. --- mpvcore/player/audio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'mpvcore') 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 { -- cgit v1.2.3