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:
parent
744d729dab
commit
b88b2b3d79
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user