fix missing check of result1

This commit is contained in:
jjceresa 2020-09-16 03:36:00 +02:00
parent b2cc3a6341
commit ccad46936d
1 changed files with 1 additions and 1 deletions

View File

@ -3409,7 +3409,7 @@ int fluid_handle_chanmap(void *data, int ac, char **av,
int chan = ac ? atoi(av[i]) : i; int chan = ac ? atoi(av[i]) : i;
result1 = fluid_synth_mixer_get_channel_mapping(synth, chan, &out_from_chan, result1 = fluid_synth_mixer_get_channel_mapping(synth, chan, &out_from_chan,
&fx_from_chan); &fx_from_chan);
if(fx_from_chan >= 0) if((result1 == FLUID_OK) && (fx_from_chan >= 0))
{ {
result2 = fluid_synth_mixer_get_fx_mapping(synth, fx_from_chan, result2 = fluid_synth_mixer_get_fx_mapping(synth, fx_from_chan,
&out_from_fx); &out_from_fx);