[Stk] RtMidi 2.0.0 compile errors

Christopher Arndt chris at chrisarndt.de
Sat Jul 21 11:57:21 PDT 2012


I found another small issue in the MidiOutJack class: the data->port
struct member is initialized to NULL too late, which causes the
following warning in the process callback function when creating a
MidiOut instance with the JACK API.

"jack_port_get_buffer called with an incorrect port XXXXXXXXX"

The attached patch fixes this by moving the data->port initialization
directly after creating of the JackMidiData struct instance.


Chris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RtMidi-fix-uninitialized-output-port-pointer.diff
Type: text/x-patch
Size: 583 bytes
Desc: not available
Url : http://ccrma-mail.stanford.edu/pipermail/stk/attachments/20120721/2801f744/attachment-0002.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1060 bytes
Desc: OpenPGP digital signature
Url : http://ccrma-mail.stanford.edu/pipermail/stk/attachments/20120721/2801f744/attachment-0003.bin 


More information about the Stk mailing list