From: Takashi Iwai Date: Mon, 27 Dec 2004 14:54:42 +0000 (+0000) Subject: Fix the abort with MIDI control X-Git-Tag: v1.0.8~6 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=d16f4c79f3a07497ecc83376b93d903a3bbd6abf;p=alsa-tools.git 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. --- 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);