From d16f4c79f3a07497ecc83376b93d903a3bbd6abf Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Mon, 27 Dec 2004 14:54:42 +0000 Subject: [PATCH] Fix the abort with MIDI control From Dirk Jagdmann 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. --- envy24control/midi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/envy24control/midi.c b/envy24control/midi.c index c89ba1f..29f9279 100644 --- a/envy24control/midi.c +++ b/envy24control/midi.c @@ -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); -- 2.47.1