Fix the abort with MIDI control

From Dirk Jagdmann <doj@cubic.org>

Hello developers,

I just gave the latest CVS version of envy24control a try and had to add
this simple patch, so it would not abort upon program start immediately.
This commit is contained in:
Takashi Iwai 2004-12-27 14:54:42 +00:00
parent a382aa1a82
commit d16f4c79f3

View file

@ -55,6 +55,7 @@ int midi_close()
static void do_controller(int c, int v)
{
snd_seq_event_t ev;
if(!seq) return;
snd_seq_ev_clear(&ev);
snd_seq_ev_set_source(&ev, port);
snd_seq_ev_set_subs(&ev);