mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-04-09 01:01:53 +00:00
fix NULL deref in jack driver
This commit is contained in:
parent
b46998ba04
commit
7e627c575c
1 changed files with 5 additions and 0 deletions
|
@ -658,6 +658,11 @@ fluid_jack_driver_process(jack_nframes_t nframes, void *arg)
|
|||
}
|
||||
|
||||
audio_driver = fluid_atomic_pointer_get(&client->audio_driver);
|
||||
if(audio_driver == NULL)
|
||||
{
|
||||
// shutting down
|
||||
return FLUID_OK;
|
||||
}
|
||||
|
||||
if(audio_driver->callback == NULL && audio_driver->num_output_ports == 1 && audio_driver->num_fx_ports == 0) /* i.e. audio.jack.multi=no */
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue