diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/seq.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -610,12 +610,12 @@ int xas_seq_play(xas_seq *seq, xas_audio_stream *sink) { timerupdate(&tv, interval, frame); while (ev && !timercmp(&tv, &ev->timestamp, <)) { - if (event_trigger(seq->scene, ev) < 0) { - goto error_event_trigger; + if (ev->type == XAS_SEQ_EVENT_STOP) { + goto done; } - if (ev->next == NULL) { - goto done; + if (event_trigger(seq->scene, ev) < 0) { + goto error_event_trigger; } ev = ev->next; |