From 1e7ef7c096c79a54c7ed796bfb74d9eaf1490196 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sat, 27 May 2006 13:59:48 +0000 Subject: [PATCH] do not call pthread_ in aubio_midi_direct_output (thanks stefan) do not call pthread_ in aubio_midi_direct_output (thanks stefan) --- ext/midi/midi_alsa_seq.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ext/midi/midi_alsa_seq.c b/ext/midi/midi_alsa_seq.c index 99d4493b..6bfaeb36 100644 --- a/ext/midi/midi_alsa_seq.c +++ b/ext/midi/midi_alsa_seq.c @@ -379,9 +379,6 @@ snd_seq_event_t ev; void aubio_midi_direct_output(aubio_midi_driver_t * d, aubio_midi_event_t * event) { aubio_alsa_seq_driver_t* dev = (aubio_alsa_seq_driver_t*) d; - if (dev->thread){ if(pthread_join(dev->thread, NULL)) { - AUBIO_ERR( "Failed to join the midi thread"); - }} switch(event->type) { case NOTE_ON: @@ -407,9 +404,6 @@ void aubio_midi_direct_output(aubio_midi_driver_t * d, aubio_midi_event_t * even snd_seq_ev_set_source(&ev, dev->seq_port); snd_seq_event_output_direct(dev->seq_handle, &ev); } - if (dev->thread) { if(pthread_detach(dev->thread)) { - AUBIO_ERR( "Failed to leave the midi thread"); - }} } #endif /* #if ALSA_SUPPORT */ -- 2.26.2