aboutsummaryrefslogtreecommitdiffstats
path: root/community/portmidi/51-remove_assert.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/portmidi/51-remove_assert.patch')
-rw-r--r--community/portmidi/51-remove_assert.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/community/portmidi/51-remove_assert.patch b/community/portmidi/51-remove_assert.patch
new file mode 100644
index 0000000000..fd29501fdd
--- /dev/null
+++ b/community/portmidi/51-remove_assert.patch
@@ -0,0 +1,13 @@
+diff --git a/pm_linux/pmlinuxalsa.c b/pm_linux/pmlinuxalsa.c
+index 8e85cfe..1ec3e56 100755
+--- a/pm_linux/pmlinuxalsa.c
++++ b/pm_linux/pmlinuxalsa.c
+@@ -494,7 +494,7 @@ static void handle_event(snd_seq_event_t *ev)
+ PmTimestamp timestamp;
+
+ /* time stamp should be in ticks, using our queue where 1 tick = 1ms */
+- assert((ev->flags & SND_SEQ_TIME_STAMP_MASK) == SND_SEQ_TIME_STAMP_TICK);
++ if ((ev->flags & SND_SEQ_TIME_STAMP_MASK) != SND_SEQ_TIME_STAMP_TICK) return;
+
+ /* if no time_proc, just return "native" ticks (ms) */
+ if (time_proc == NULL) {