1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-21 22:30:22 +00:00

af_force: minor simplifications

This commit is contained in:
wm4 2013-10-23 18:11:03 +02:00
parent 943c785619
commit 247c89d6ba

View File

@ -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),