summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/seq.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/seq.c b/src/seq.c
index c763db4..eca1144 100644
--- a/src/seq.c
+++ b/src/seq.c
@@ -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;