From 247c89d6ba39ff2a1d9912b3dc09cae20ccba063 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 23 Oct 2013 18:11:03 +0200 Subject: af_force: minor simplifications --- audio/filter/af_format.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'audio/filter') diff --git a/audio/filter/af_format.c b/audio/filter/af_format.c index 21af663e81..bb827df248 100644 --- a/audio/filter/af_format.c +++ b/audio/filter/af_format.c @@ -99,14 +99,9 @@ static struct mp_audio *play(struct af_instance *af, struct mp_audio *data) return r; } -static void uninit(struct af_instance *af) -{ -} - static int af_open(struct af_instance *af) { af->control = control; - af->uninit = uninit; af->play = play; af->mul = 1; struct priv *priv = af->priv; @@ -124,10 +119,6 @@ struct af_info af_info_format = { 0, af_open, .priv_size = sizeof(struct priv), - .priv_defaults = &(const struct priv) { - .in_format = AF_FORMAT_UNKNOWN, - .out_format = AF_FORMAT_UNKNOWN, - }, .options = (const struct m_option[]) { OPT_AUDIOFORMAT("format", in_format, 0), OPT_INTRANGE("srate", in_srate, 0, 1000, 8*48000), -- cgit v1.2.3