aboutsummaryrefslogtreecommitdiffstats
path: root/testing/portmidi/51-remove_assert.patch
blob: fd29501fddf8912c32f92c9f6cd1be83bd5979b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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) {