[PD-cvs] pd/portmidi/pm_mac pmmacosxcm.c,1.21,1.22

Miller Puckette millerpuckette at users.sourceforge.net
Thu Aug 2 02:33:52 CEST 2007


Update of /cvsroot/pure-data/pd/portmidi/pm_mac
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6346/pd/portmidi/pm_mac

Modified Files:
	pmmacosxcm.c 
Log Message:
fix name clash in s_audio_jack.c (again) and applied some sourceforge patches



Index: pmmacosxcm.c
===================================================================
RCS file: /cvsroot/pure-data/pd/portmidi/pm_mac/pmmacosxcm.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** pmmacosxcm.c	24 Jul 2007 04:53:36 -0000	1.21
--- pmmacosxcm.c	2 Aug 2007 00:33:49 -0000	1.22
***************
*** 457,460 ****
--- 457,468 ----
      
      /* now send what's in the buffer */
+     if (m->packet == NULL) {
+         /* if flush has been called in the meantime, packet list is NULL */
+         m->packet = MIDIPacketListInit(m->packetList);
+         /* this can never fail, right? failure would indicate something 
+            unrecoverable */
+         assert(m->packet);
+     }
+ 
      err = send_packet(midi, m->sysex_buffer, m->sysex_byte_count,
                        m->sysex_timestamp);





More information about the Pd-cvs mailing list