ref: 1e7ef7c096c79a54c7ed796bfb74d9eaf1490196
parent: 3901714a5821f99ccfd08cdb1d95f5bf3a6d5be8
author: Paul Brossier <piem@altern.org>
date: Sat May 27 09:59:48 EDT 2006
do not call pthread_ in aubio_midi_direct_output (thanks stefan) do not call pthread_ in aubio_midi_direct_output (thanks stefan)
--- a/ext/midi/midi_alsa_seq.c
+++ b/ext/midi/midi_alsa_seq.c
@@ -379,9 +379,6 @@
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 @@
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 */