output/Internal: initialize the Filter pointers
With the configuration "replay_gain_handler none", the Filter pointers are never initialized, which can crash MPD. https://bugs.musicpd.org/view.php?id=4571
This commit is contained in:
parent
e51b6a6233
commit
08166cf330
@ -192,7 +192,7 @@ struct AudioOutput {
|
||||
* instance of chain_filter_plugin.
|
||||
*/
|
||||
PreparedFilter *prepared_filter = nullptr;
|
||||
Filter *filter_instance;
|
||||
Filter *filter_instance = nullptr;
|
||||
|
||||
/**
|
||||
* The #VolumeFilter instance of this audio output. It is
|
||||
@ -205,7 +205,7 @@ struct AudioOutput {
|
||||
* output.
|
||||
*/
|
||||
PreparedFilter *prepared_replay_gain_filter = nullptr;
|
||||
Filter *replay_gain_filter_instance;
|
||||
Filter *replay_gain_filter_instance = nullptr;
|
||||
|
||||
/**
|
||||
* The serial number of the last replay gain info. 0 means no
|
||||
@ -219,7 +219,7 @@ struct AudioOutput {
|
||||
* cross-fading.
|
||||
*/
|
||||
PreparedFilter *prepared_other_replay_gain_filter = nullptr;
|
||||
Filter *other_replay_gain_filter_instance;
|
||||
Filter *other_replay_gain_filter_instance = nullptr;
|
||||
|
||||
/**
|
||||
* The serial number of the last replay gain info by the
|
||||
|
Loading…
Reference in New Issue
Block a user