Fix an impossible NULL deref

This commit is contained in:
derselbst 2020-09-09 17:42:41 +02:00 committed by Tom M
parent 7ff98227c6
commit ec74ed905b

View file

@ -1605,7 +1605,7 @@ fluid_track_send_events(fluid_track_t *track,
}
}
if(event->type == MIDI_SET_TEMPO)
if(event->type == MIDI_SET_TEMPO && player != NULL)
{
fluid_player_set_midi_tempo(player, event->param1);
}