output_init: initialize replay gain filters to NULL in ao_base_init()

If output plugin fails to init it will try to call ao_base_finish() immediately,
which segfaults because replay gain filters are not initialized yet and contain
garbage values.
This commit is contained in:
Denis Krjuchkov 2011-10-23 12:51:33 +06:00 committed by Max Kellermann
parent 744d729dab
commit b88b2b3d79

View File

@ -213,6 +213,8 @@ ao_base_init(struct audio_output *ao,
ao->cond = g_cond_new();
ao->mixer = NULL;
ao->replay_gain_filter = NULL;
ao->other_replay_gain_filter = NULL;
/* the "convert" filter must be the last one in the chain */