/[packages]/cauldron/zrythm/current/SOURCES/0001-bump-rtmidi-to-5.0.0.patch
ViewVC logotype

Contents of /cauldron/zrythm/current/SOURCES/0001-bump-rtmidi-to-5.0.0.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1937099 - (show annotations) (download)
Mon Jan 30 19:13:17 2023 UTC (14 months, 3 weeks ago) by daviddavid
File size: 681 byte(s)
- add patch, based on upstream, to fix build with rtmidi 5.0.0

1 diff -Nrup a/src/audio/ext_port.c b/src/audio/ext_port.c
2 --- a/src/audio/ext_port.c 2020-09-15 17:26:23.578569200 +0200
3 +++ b/src/audio/ext_port.c 2023-01-30 19:54:01.751633691 +0100
4 @@ -287,9 +287,13 @@ ext_port_from_rtmidi (
5 RtMidiDevice * dev =
6 rtmidi_device_new (1, id, NULL);
7 self->rtmidi_id = id;
8 - self->full_name =
9 - g_strdup (
10 - rtmidi_get_port_name (dev->in_handle, id));
11 + int buf_len;
12 + rtmidi_get_port_name (
13 + dev->in_handle, id, NULL, &buf_len);
14 + char buf[buf_len];
15 + rtmidi_get_port_name (
16 + dev->in_handle, id, buf, &buf_len);
17 + self->full_name = g_strdup (buf);
18 self->type = EXT_PORT_TYPE_RTMIDI;
19 rtmidi_device_free (dev);
20

  ViewVC Help
Powered by ViewVC 1.1.30